oweals/gnunet.git
7 years agocleanup
lurchi [Mon, 4 Sep 2017 13:10:59 +0000 (15:10 +0200)]
cleanup

7 years agoFix select loop running conditions
lurchi [Mon, 4 Sep 2017 13:05:26 +0000 (15:05 +0200)]
Fix select loop running conditions

The select loop has to keep running as long as the driver has tasks
available (indicating that there are file descriptors left to wait for)
or the timeout is not FOREVER (indicating that the scheduler has tasks
with timeout left).

7 years agohandles, not handlers
lurchi [Mon, 4 Sep 2017 10:40:53 +0000 (12:40 +0200)]
handles, not handlers

7 years agoremove scheduler->internal code from driver loop
lurchi [Mon, 4 Sep 2017 10:23:51 +0000 (12:23 +0200)]
remove scheduler->internal code from driver loop

7 years agoRemove busy waiting checks
lurchi [Mon, 4 Sep 2017 09:56:48 +0000 (11:56 +0200)]
Remove busy waiting checks

Busy waiting should never happen (at least the shutdown pipe is always
there for the driver to wait for).
When busy waiting happens, i.e. GNUNET_SCHEDULER_run_from_driver is
called without any task ready, it is a programming error (at least I
don't know any valid use case for busy waiting).
Hence, remove the busy waiting checks and let
GNUNET_SCHEDULER_run_from_driver return GNUNET_SYSERR instead in this
case.

7 years agoDon't consider restart when the test action already finished
lurchi [Mon, 4 Sep 2017 07:17:45 +0000 (09:17 +0200)]
Don't consider restart when the test action already finished

In the old scheduler implementation tasks with different priorities were
run in the same event loop iteration, in the new implementation this
cannot be guaranteed anymore, as it's driver-dependent.
For the FS tests this means that when adding both an 'abort' task and a
'restart' task (the latter with higher priority) the 'restart' task
didn't take effect with the old implementation but does with the new
implementation (and leads to an assertion failure).
Not scheduling the 'restart' task when the action (download/publish) has
already finished successfully solves this issue.

7 years agoclarify documentation about adding / deleting tasks
lurchi [Fri, 25 Aug 2017 10:59:28 +0000 (12:59 +0200)]
clarify documentation about adding / deleting tasks

7 years agoSimplify driver callback del; fix shutdown logic
lurchi [Fri, 25 Aug 2017 10:39:04 +0000 (12:39 +0200)]
Simplify driver callback del; fix shutdown logic

The driver callback for deleting a task has been simplified: Now it is
only possible to delete a task, not single FdInfos.

A logic bug in GNUNET_SCHEDULER_cancel has been fixed (FD-related tasks
need to be deleted from the driver, when they are already in the ready
queue).

7 years agofix behaviour of GNUNET_SCHEDULER_add_select on empty fdsets
lurchi [Thu, 24 Aug 2017 20:17:46 +0000 (22:17 +0200)]
fix behaviour of GNUNET_SCHEDULER_add_select on empty fdsets

if GNUNET_SCHEDULER_add_select is called with empty fdsets, the
    resulting task is now added to the pending_timeout queue instead of
    the pending queue. This way the driver will not know about the task.

7 years agoNULL-initialize array pointers
lurchi [Thu, 24 Aug 2017 18:38:15 +0000 (20:38 +0200)]
NULL-initialize array pointers

7 years agocleanup
lurchi [Wed, 23 Aug 2017 13:57:58 +0000 (15:57 +0200)]
cleanup

7 years agoGNUNET_SCHEDULER_check_lifeness not needed anymore
lurchi [Wed, 23 Aug 2017 13:45:52 +0000 (15:45 +0200)]
GNUNET_SCHEDULER_check_lifeness not needed anymore

7 years agotasks in the pending queue must be be checked for reached timeouts, too; allow multip...
lurchi [Wed, 23 Aug 2017 13:44:52 +0000 (15:44 +0200)]
tasks in the pending queue must be be checked for reached timeouts, too; allow multiple event types per FdInfo

7 years agoimprove documentation about the GNUNET_array_append and GNUNET_array_grow macros
lurchi [Sun, 20 Aug 2017 23:09:15 +0000 (01:09 +0200)]
improve documentation about the GNUNET_array_append and GNUNET_array_grow macros

7 years agoonly allocate network / file handles and store them in the task when GNUNET_SCHEDULER...
lurchi [Sun, 20 Aug 2017 23:07:27 +0000 (01:07 +0200)]
only allocate network / file handles and store them in the task when GNUNET_SCHEDULER_add_select is used

7 years agoimplement bookkeeping about which FDs related to a tasks have been marked ready ...
lurchi [Fri, 18 Aug 2017 14:17:28 +0000 (16:17 +0200)]
implement bookkeeping about which FDs related to a tasks have been marked ready (required API change in GNUNET_SCHEDULER_task_ready)

7 years agoincreasing length variable is already done by GNUNET_xgrow_ (called by the GNUNET_arr...
lurchi [Thu, 17 Aug 2017 18:32:17 +0000 (20:32 +0200)]
increasing length variable is already done by GNUNET_xgrow_ (called by the GNUNET_array_append macro)

7 years agoadd buggy state of refactored GNUNET_SCHEDULER_add_select
lurchi [Wed, 16 Aug 2017 11:57:37 +0000 (13:57 +0200)]
add buggy state of refactored GNUNET_SCHEDULER_add_select

7 years agoreimplement init_fd_info as preparation for refactoring GNUNET_SCHEDULER_add_select
lurchi [Sun, 13 Aug 2017 19:04:34 +0000 (21:04 +0200)]
reimplement init_fd_info as preparation for refactoring GNUNET_SCHEDULER_add_select

7 years agofix off-by-one error that prevented reading from stdin
lurchi [Sat, 12 Aug 2017 15:39:54 +0000 (17:39 +0200)]
fix off-by-one error that prevented reading from stdin

7 years agoinit_fd_info now completely initializes fd information; Allow calling add/cancel...
lurchi [Sat, 12 Aug 2017 15:39:21 +0000 (17:39 +0200)]
init_fd_info now completely initializes fd information; Allow calling add/cancel functions only when the scheduler is running

7 years agoset fds_len in all cases; call set_wakeup only in two places
lurchi [Fri, 11 Aug 2017 16:57:20 +0000 (18:57 +0200)]
set fds_len in all cases; call set_wakeup only in two places

7 years agoRevert "set fds_len in all cases; call set_wakeup only in two places"
lurchi [Fri, 11 Aug 2017 17:02:16 +0000 (19:02 +0200)]
Revert "set fds_len in all cases; call set_wakeup only in two places"

This reverts commit 7d42c453fbb032ac8fb43c8e56bb84354ecedf2d.

7 years agoset fds_len in all cases; call set_wakeup only in two places
lurchi [Fri, 11 Aug 2017 16:49:55 +0000 (18:49 +0200)]
set fds_len in all cases; call set_wakeup only in two places

7 years agoremove unnecessary set_wakup call
lurchi [Thu, 10 Aug 2017 19:09:18 +0000 (21:09 +0200)]
remove unnecessary set_wakup call

7 years agofix compilation of debug code enabled by DEBUG_FDS; fix indentation
lurchi [Thu, 10 Aug 2017 18:05:37 +0000 (20:05 +0200)]
fix compilation of debug code enabled by DEBUG_FDS; fix indentation

7 years agocosmetic fixes
lurchi [Wed, 9 Aug 2017 20:37:43 +0000 (22:37 +0200)]
cosmetic fixes

7 years agotest_scheduler passing; new API function GNUNET_SCHEDULER_check_lifeness
lurchi [Wed, 9 Aug 2017 20:24:25 +0000 (22:24 +0200)]
test_scheduler passing; new API function GNUNET_SCHEDULER_check_lifeness

7 years agolifeness checks; shutdown now working; checkSignal not passing yet
lurchi [Wed, 9 Aug 2017 17:21:30 +0000 (19:21 +0200)]
lifeness checks; shutdown now working; checkSignal not passing yet

7 years agofix initFdInfo; rename to init_fd_info
lurchi [Wed, 9 Aug 2017 11:50:09 +0000 (13:50 +0200)]
fix initFdInfo; rename to init_fd_info

7 years agofix indentation; remove unneeded set_wakeup call
lurchi [Wed, 9 Aug 2017 11:28:45 +0000 (13:28 +0200)]
fix indentation; remove unneeded set_wakeup call

7 years agoMerge branch 'refactoring-scheduler' of ssh://gnunet.org/gnunet
lurchi [Tue, 8 Aug 2017 16:42:02 +0000 (18:42 +0200)]
Merge branch 'refactoring-scheduler' of ssh://gnunet.org/gnunet

7 years agoseparate the select driver's fd sets from the driver-internal fdsets
lurchi [Tue, 8 Aug 2017 16:35:53 +0000 (18:35 +0200)]
separate the select driver's fd sets from the driver-internal fdsets

7 years agoSmaller changes. Changed order when set_wakeup is called after some task is removed...
t3sserakt [Tue, 8 Aug 2017 16:30:33 +0000 (18:30 +0200)]
Smaller changes. Changed order when set_wakeup is called after some task is removed from pending_timeout

7 years agofix segfault and pending_timeout logic
lurchi [Sat, 5 Aug 2017 14:31:09 +0000 (16:31 +0200)]
fix segfault and pending_timeout logic

7 years agoadd missing DLL insert
lurchi [Sat, 5 Aug 2017 11:38:45 +0000 (13:38 +0200)]
add missing DLL insert

7 years agofix warnings
lurchi [Sat, 5 Aug 2017 11:35:10 +0000 (13:35 +0200)]
fix warnings

7 years agomake input of getters const (needed for new scheduler API)
lurchi [Sat, 5 Aug 2017 11:33:55 +0000 (13:33 +0200)]
make input of getters const (needed for new scheduler API)

7 years agoGNUNET_SCHEDULER_run is calling GNUNET_SCHEDULER_run_with_driver with the default...
t3sserakt [Fri, 4 Aug 2017 06:45:30 +0000 (08:45 +0200)]
GNUNET_SCHEDULER_run is calling GNUNET_SCHEDULER_run_with_driver with the default select polling backend.

7 years agoCall to set_wakeup added after tasks added/removed to/from pending_timeout
t3sserakt [Thu, 3 Aug 2017 04:04:45 +0000 (06:04 +0200)]
Call to set_wakeup added after tasks added/removed to/from pending_timeout

7 years agoNearly finished. Call to set_wakeup missing in case of tasks added to pending_timeout
t3sserakt [Wed, 2 Aug 2017 20:55:04 +0000 (22:55 +0200)]
Nearly finished. Call to set_wakeup missing in case of tasks added to pending_timeout

7 years agoadapt add_without_sets to scheduler driver API; reimplement initFdInfo
lurchi [Thu, 20 Jul 2017 23:27:22 +0000 (01:27 +0200)]
adapt add_without_sets to scheduler driver API; reimplement initFdInfo

7 years agosmall fixes
lurchi [Thu, 20 Jul 2017 16:04:02 +0000 (18:04 +0200)]
small fixes

7 years agostarted further refactoring of scheduler. ATTENTION, actual Status does not compile!
t3sserakt [Thu, 20 Jul 2017 13:23:36 +0000 (15:23 +0200)]
started further refactoring of scheduler. ATTENTION, actual Status does not compile!

7 years ago-very unimportant typo fixed
psyc://loupsycedyglgamf.onion/~lynX [Sat, 8 Jul 2017 19:50:21 +0000 (19:50 +0000)]
-very unimportant typo fixed

7 years agoimplement GNUNET_h2s2 for printing two hashes in one log output line
lurchi [Sat, 8 Jul 2017 19:50:20 +0000 (21:50 +0200)]
implement GNUNET_h2s2 for printing two hashes in one log output line

7 years agofix hostlist server option
xrs [Mon, 3 Jul 2017 22:52:39 +0000 (00:52 +0200)]
fix hostlist server option

7 years agomulticast: remove unnecessary header file in Makefile.am
xrs [Mon, 3 Jul 2017 22:32:40 +0000 (00:32 +0200)]
multicast: remove unnecessary header file in Makefile.am

7 years agodeactivate hostlist server option
xrs [Mon, 3 Jul 2017 22:31:17 +0000 (00:31 +0200)]
deactivate hostlist server option

7 years agoMerge branch 'master' of ssh://gnunet.org/gnunet
xrs [Mon, 3 Jul 2017 22:29:19 +0000 (00:29 +0200)]
Merge branch 'master' of ssh://gnunet.org/gnunet

7 years agodeaktivate hostlist server and use topology option
xrs [Mon, 3 Jul 2017 22:29:15 +0000 (00:29 +0200)]
deaktivate hostlist server and use topology option

7 years agodo not invoke callback after set operation destruction, should fix #5082
Christian Grothoff [Mon, 3 Jul 2017 15:38:20 +0000 (17:38 +0200)]
do not invoke callback after set operation destruction, should fix #5082

7 years agorevert change, tests must not rely on Internet
Christian Grothoff [Thu, 29 Jun 2017 21:48:28 +0000 (23:48 +0200)]
revert change, tests must not rely on Internet

7 years agomake test work on gnunet with public hostlist server
xrs [Thu, 29 Jun 2017 21:30:49 +0000 (23:30 +0200)]
make test work on gnunet with public hostlist server

7 years agofix FTBFS issues if --enable-logging=no is set
Christian Grothoff [Thu, 29 Jun 2017 13:02:31 +0000 (15:02 +0200)]
fix FTBFS issues if --enable-logging=no is set

7 years agofix nat service port collision during test
Christian Grothoff [Mon, 26 Jun 2017 15:46:28 +0000 (17:46 +0200)]
fix nat service port collision during test

7 years agofix configs, inlines are now relative to source dir of inlining file
Christian Grothoff [Mon, 26 Jun 2017 09:51:38 +0000 (11:51 +0200)]
fix configs, inlines are now relative to source dir of inlining file

7 years agofix test failure introduced by latest configuration parser fix, avoid unnecessary...
Christian Grothoff [Mon, 26 Jun 2017 07:16:44 +0000 (09:16 +0200)]
fix test failure introduced by latest configuration parser fix, avoid unnecessary copying around of the configuration file

7 years ago[transport] Fix EBADF in select()
David Barksdale [Sun, 25 Jun 2017 22:40:52 +0000 (17:40 -0500)]
[transport] Fix EBADF in select()

This fixes issue #3691.

7 years agofix configuration parsing issue with inlines from configuration not in cwd
Christian Grothoff [Sun, 25 Jun 2017 17:36:44 +0000 (19:36 +0200)]
fix configuration parsing issue with inlines from configuration not in cwd

7 years agoallow NULL fields for varsize
Christian Grothoff [Sun, 25 Jun 2017 15:05:09 +0000 (17:05 +0200)]
allow NULL fields for varsize

7 years agostart to fix some test issues with postgres psycstore
Christian Grothoff [Sun, 25 Jun 2017 14:48:48 +0000 (16:48 +0200)]
start to fix some test issues with postgres psycstore

7 years agoFix debug message.
jah [Sun, 25 Jun 2017 11:47:49 +0000 (12:47 +0100)]
Fix debug message.

7 years agoFix quota compliance tests.
jah [Sun, 25 Jun 2017 11:47:48 +0000 (12:47 +0100)]
Fix quota compliance tests.

7 years agoEnsure peer started callback recvs PeerContext
jah [Sun, 25 Jun 2017 11:47:47 +0000 (12:47 +0100)]
Ensure peer started callback recvs PeerContext

7 years agobitch more if NULL rows cause PQ result extraction to fail
Christian Grothoff [Sat, 24 Jun 2017 23:40:51 +0000 (01:40 +0200)]
bitch more if NULL rows cause PQ result extraction to fail

7 years agofix crash if block plugin not found
Christian Grothoff [Sat, 24 Jun 2017 22:42:25 +0000 (00:42 +0200)]
fix crash if block plugin not found

7 years agodht: install cli clients
Daniel Golle [Fri, 23 Jun 2017 22:51:01 +0000 (00:51 +0200)]
dht: install cli clients

7 years ago[topology] Fix blacklist condition
David Barksdale [Sat, 24 Jun 2017 04:18:59 +0000 (23:18 -0500)]
[topology] Fix blacklist condition

This fixes issue #5086.

7 years agoif (1) holds here, remove redundant if
Christian Grothoff [Fri, 23 Jun 2017 22:09:51 +0000 (00:09 +0200)]
if (1) holds here, remove redundant if

7 years agostart VPN helper also if only services are running
Christian Grothoff [Fri, 23 Jun 2017 22:06:42 +0000 (00:06 +0200)]
start VPN helper also if only services are running

7 years agofix indexing issue found by jah and reported on gnunet-developers on 6-8/7/2017
Christian Grothoff [Fri, 23 Jun 2017 14:25:19 +0000 (16:25 +0200)]
fix indexing issue found by jah and reported on gnunet-developers on 6-8/7/2017

7 years agofix misc namestore crashes from pq migration
Christian Grothoff [Fri, 23 Jun 2017 14:05:07 +0000 (16:05 +0200)]
fix misc namestore crashes from pq migration

7 years agonamestore: postgres: fix iterating over zone
Daniel Golle [Fri, 23 Jun 2017 11:54:40 +0000 (13:54 +0200)]
namestore: postgres: fix iterating over zone

Stop iterating on GNUNET_DB_STATUS_SUCCESS_NO_RESULTS.

7 years agokill short zone remenants
Christian Grothoff [Fri, 23 Jun 2017 12:12:48 +0000 (14:12 +0200)]
kill short zone remenants

7 years agoMerge branch 'master' of ssh://gnunet.org/gnunet
xrs [Thu, 22 Jun 2017 19:53:36 +0000 (21:53 +0200)]
Merge branch 'master' of ssh://gnunet.org/gnunet

7 years agoUpdate multicast test
xrs [Thu, 22 Jun 2017 19:53:06 +0000 (21:53 +0200)]
Update multicast test

7 years agoRemove valgrind from test config
David Barksdale [Thu, 22 Jun 2017 14:47:34 +0000 (09:47 -0500)]
Remove valgrind from test config

7 years agofix indentation
Christian Grothoff [Tue, 20 Jun 2017 20:22:28 +0000 (22:22 +0200)]
fix indentation

7 years agoset: disconnect, don't destroy yet
Florian Dold [Tue, 20 Jun 2017 17:32:29 +0000 (19:32 +0200)]
set: disconnect, don't destroy yet

7 years agoset: remove workaround to test if a set bug and not cadet was at fault
Florian Dold [Tue, 20 Jun 2017 16:09:06 +0000 (18:09 +0200)]
set: remove workaround to test if a set bug and not cadet was at fault

7 years agoset: adjust log type
Florian Dold [Sun, 18 Jun 2017 00:45:21 +0000 (02:45 +0200)]
set: adjust log type

7 years agoconsensus: logging text
Florian Dold [Sun, 18 Jun 2017 00:44:13 +0000 (02:44 +0200)]
consensus: logging text

7 years agoconsensus/set: saner log levels
Florian Dold [Sun, 18 Jun 2017 00:42:06 +0000 (02:42 +0200)]
consensus/set: saner log levels

7 years agoCONSENSUS/SET: even uglier CADET workarounds
Florian Dold [Sun, 18 Jun 2017 00:24:03 +0000 (02:24 +0200)]
CONSENSUS/SET:  even uglier CADET workarounds

7 years agoSET: add another CADET bug workaround
Florian Dold [Sat, 17 Jun 2017 23:13:26 +0000 (01:13 +0200)]
SET: add another CADET bug workaround

This time it's something that occurs pretty rarely, and only when
sending the full set is triggered.

7 years ago[transport] copy-paste error, nothing to see here
David Barksdale [Fri, 16 Jun 2017 00:01:30 +0000 (19:01 -0500)]
[transport] copy-paste error, nothing to see here

So embarassing!

7 years ago[transport] Don't exit with suspended connections
David Barksdale [Thu, 15 Jun 2017 18:54:38 +0000 (13:54 -0500)]
[transport] Don't exit with suspended connections

7 years ago[transport] suspend connection to avoid busy-wait
David Barksdale [Tue, 13 Jun 2017 04:50:25 +0000 (23:50 -0500)]
[transport] suspend connection to avoid busy-wait

7 years agoconfigure.ac: don't make guesses which uid 'make install' will have
psyc://loupsycedyglgamf.onion/~lynX [Sun, 11 Jun 2017 04:09:02 +0000 (04:09 +0000)]
configure.ac: don't make guesses which uid 'make install' will have

7 years agognunet-social: removed duplicate getopt
psyc://loupsycedyglgamf.onion/~lynX [Sun, 11 Jun 2017 04:09:01 +0000 (04:09 +0000)]
gnunet-social: removed duplicate getopt

7 years agoset: add 'over' message, since cadet does not reliably detect channel termination
Florian Dold [Sun, 11 Jun 2017 04:08:39 +0000 (06:08 +0200)]
set: add 'over' message, since cadet does not reliably detect channel termination

7 years agoclarify enum values
Christian Grothoff [Sun, 11 Jun 2017 00:11:52 +0000 (02:11 +0200)]
clarify enum values

7 years agorename GNUNET_PQ_QueryStatus to GNUNET_DB_QueryStatus
Christian Grothoff [Sat, 10 Jun 2017 23:23:16 +0000 (01:23 +0200)]
rename GNUNET_PQ_QueryStatus to GNUNET_DB_QueryStatus

7 years agohandle UNIQUE violation nicely
Christian Grothoff [Sat, 10 Jun 2017 19:53:08 +0000 (21:53 +0200)]
handle UNIQUE violation nicely

7 years ago[transport] http(s) are stable
David Barksdale [Thu, 8 Jun 2017 20:29:42 +0000 (15:29 -0500)]
[transport] http(s) are stable

7 years agoDon't valgrind
David Barksdale [Thu, 8 Jun 2017 20:22:58 +0000 (15:22 -0500)]
Don't valgrind

7 years agoUpdate Makefile for deleted files
David Barksdale [Wed, 7 Jun 2017 14:31:16 +0000 (09:31 -0500)]
Update Makefile for deleted files

7 years agoUpdate configure.ac POTFILES.in for deleted files
David Barksdale [Wed, 7 Jun 2017 14:11:04 +0000 (09:11 -0500)]
Update configure.ac POTFILES.in for deleted files

7 years agomark dv/http/https/wlan/bt as experimental
Christian Grothoff [Tue, 6 Jun 2017 16:06:03 +0000 (18:06 +0200)]
mark dv/http/https/wlan/bt as experimental