oweals/gnunet.git
6 years agoscheduler API change to allow use with js event loop
lurchi [Thu, 1 Feb 2018 18:54:54 +0000 (19:54 +0100)]
scheduler API change to allow use with js event loop

- GNUNET_SCHEDUELR_run_with_driver has been replaced with
GNUNET_SCHEDULER_driver_init and GNUNET_SCHEDUELR_driver_done
- GNUNET_SCHEDULER_run_from_driver has been renamed to
GNUNET_SCHEDULER_do_work (as it's no longer being called from a driver
callback)
- documentation has been updated

6 years ago-code scanner complains about intentional malloc return
psyc://loupsycedyglgamf.onion/~lynX [Tue, 30 Jan 2018 11:50:56 +0000 (11:50 +0000)]
-code scanner complains about intentional malloc return

6 years agofix datastore bind issue
Christian Grothoff [Tue, 30 Jan 2018 11:50:45 +0000 (12:50 +0100)]
fix datastore bind issue

6 years agolog unsent queued messages only on DEBUG
Florian Dold [Tue, 30 Jan 2018 01:30:08 +0000 (02:30 +0100)]
log unsent queued messages only on DEBUG

6 years agorps test: fix uninitialized value usage (coverity)
Julius Bünger [Mon, 29 Jan 2018 17:46:54 +0000 (18:46 +0100)]
rps test: fix uninitialized value usage (coverity)

6 years agoreally make GNUNET_SCHEDULER_run_from_driver more graceful (must have been late)
lurchi [Sat, 27 Jan 2018 11:44:59 +0000 (12:44 +0100)]
really make GNUNET_SCHEDULER_run_from_driver more graceful (must have been late)

6 years agorps: record more statistic values
Julius Bünger [Thu, 25 Jan 2018 15:05:35 +0000 (16:05 +0100)]
rps: record more statistic values

6 years agorps profiler: write statistics to file
Julius Bünger [Thu, 25 Jan 2018 14:56:57 +0000 (15:56 +0100)]
rps profiler: write statistics to file

6 years agomake GNUNET_SCHEDULER_run_from_driver more graceful
lurchi [Wed, 24 Jan 2018 21:52:25 +0000 (22:52 +0100)]
make GNUNET_SCHEDULER_run_from_driver more graceful

GNUNET_SCHEDULER_run_from_driver may now be called without any tasks
being ready if the timeout has not been reached yet. A warning is
printed because it may be a programming error in the driver (see
comments)

6 years agocatch early return of select before call to GNUNET_SCHEDULER_run_from_driver
lurchi [Tue, 23 Jan 2018 08:09:27 +0000 (09:09 +0100)]
catch early return of select before call to GNUNET_SCHEDULER_run_from_driver

6 years agoRevert "add assertion for debugging"
lurchi [Tue, 23 Jan 2018 07:47:01 +0000 (08:47 +0100)]
Revert "add assertion for debugging"

This reverts commit d45c008e677fa2fbff03e22745390d4775b031d2.

6 years agoadd assertion for debugging
lurchi [Tue, 23 Jan 2018 07:14:13 +0000 (08:14 +0100)]
add assertion for debugging

6 years agoforgot headerfile
Schanzenbach, Martin [Mon, 22 Jan 2018 18:49:05 +0000 (19:49 +0100)]
forgot headerfile

6 years agoremove unnecessary check
lurchi [Mon, 22 Jan 2018 17:46:36 +0000 (18:46 +0100)]
remove unnecessary check

The reason field of tasks in the pending_timeout queue is never modified while the tasks are in the queue

6 years agouse absolute times in driver
lurchi [Mon, 22 Jan 2018 17:43:47 +0000 (18:43 +0100)]
use absolute times in driver

this shouldn't change anything but makes debugging easier.

6 years agofix rest header parsing as well
Schanzenbach, Martin [Mon, 22 Jan 2018 16:41:14 +0000 (17:41 +0100)]
fix rest header parsing as well

6 years agofix post processing
Schanzenbach, Martin [Mon, 22 Jan 2018 16:34:57 +0000 (17:34 +0100)]
fix post processing

6 years agoimplement boolean json spec
Florian Dold [Mon, 22 Jan 2018 16:05:38 +0000 (17:05 +0100)]
implement boolean json spec

6 years agofix memleak
Schanzenbach, Martin [Mon, 22 Jan 2018 13:49:35 +0000 (14:49 +0100)]
fix memleak

6 years agorps profiler: more statistics from service
Julius Bünger [Mon, 22 Jan 2018 03:32:33 +0000 (04:32 +0100)]
rps profiler: more statistics from service

6 years agorps service: try to fix handling of new channels
Julius Bünger [Mon, 22 Jan 2018 03:30:18 +0000 (04:30 +0100)]
rps service: try to fix handling of new channels

6 years agoMerge branch 'master' of ssh://gnunet.org/gnunet
xrs [Sun, 21 Jan 2018 18:04:28 +0000 (19:04 +0100)]
Merge branch 'master' of ssh://gnunet.org/gnunet

6 years agotest_multicast_multipeer: fix warnings
xrs [Sun, 21 Jan 2018 18:04:18 +0000 (19:04 +0100)]
test_multicast_multipeer: fix warnings

6 years agoindentation fixes
Christian Grothoff [Sun, 21 Jan 2018 14:23:40 +0000 (15:23 +0100)]
indentation fixes

6 years agocheck if no tasks are left after the driver loop
lurchi [Sun, 21 Jan 2018 12:32:36 +0000 (13:32 +0100)]
check if no tasks are left after the driver loop

- add assertions to make sure all tasks have been run or cancelled
- don't cancel all pending tasks during shutdown, only cancel the two
internal tasks scheduled in GNUNET_SCHEDULER_run_with_driver

6 years agoactually test if signals are handled
lurchi [Sun, 21 Jan 2018 12:29:20 +0000 (13:29 +0100)]
actually test if signals are handled

- use a timeout task to prevent the scheduler from shutting down before
the signal can be handled
- test task cancellation before using the timeout task
- use a different status code for each test case

6 years agoupdate test_psyc_api_join
xrs [Sun, 21 Jan 2018 12:04:55 +0000 (13:04 +0100)]
update test_psyc_api_join

6 years agoMerge branch 'master' of ssh://gnunet.org/gnunet
xrs [Sun, 21 Jan 2018 10:17:29 +0000 (11:17 +0100)]
Merge branch 'master' of ssh://gnunet.org/gnunet

6 years agofix link
Christian Grothoff [Sat, 20 Jan 2018 21:10:09 +0000 (22:10 +0100)]
fix link

6 years agoign
Christian Grothoff [Sat, 20 Jan 2018 21:08:12 +0000 (22:08 +0100)]
ign

6 years agoreactivate test, fix misc warnings
Christian Grothoff [Sat, 20 Jan 2018 21:07:10 +0000 (22:07 +0100)]
reactivate test, fix misc warnings

6 years agodoc: developer: fix line 97 xref warning
ng0 [Fri, 19 Jan 2018 19:49:58 +0000 (19:49 +0000)]
doc: developer: fix line 97 xref warning

6 years agogitignore: Add non-public gnunet-doc.scm which happens to reside in the tree of ng0
ng0 [Fri, 19 Jan 2018 19:40:42 +0000 (19:40 +0000)]
gitignore: Add non-public gnunet-doc.scm which happens to reside in the tree of ng0

6 years agofix loop responsible for finding tasks with expired timeout
lurchi [Thu, 18 Jan 2018 15:25:10 +0000 (16:25 +0100)]
fix loop responsible for finding tasks with expired timeout

6 years agoalways check priority given by users
lurchi [Wed, 17 Jan 2018 17:02:27 +0000 (18:02 +0100)]
always check priority given by users

6 years agoreturn now if we found a task that is ready (optimization)
lurchi [Tue, 16 Jan 2018 17:44:58 +0000 (18:44 +0100)]
return now if we found a task that is ready (optimization)

6 years agoonly check fdsets when select selected something (optimization)
lurchi [Tue, 16 Jan 2018 17:43:27 +0000 (18:43 +0100)]
only check fdsets when select selected something (optimization)

6 years agoRevert "call GNUNET_abort_ directly for debugging purposes"
lurchi [Tue, 16 Jan 2018 17:10:08 +0000 (18:10 +0100)]
Revert "call GNUNET_abort_ directly for debugging purposes"

This reverts commit 5c4ae18d2e58c8bf3ba60a4f69251e304fbb9915.

6 years agocall GNUNET_abort_ directly for debugging purposes
lurchi [Tue, 16 Jan 2018 16:30:25 +0000 (17:30 +0100)]
call GNUNET_abort_ directly for debugging purposes

6 years agoremove duplicate timeout check
lurchi [Tue, 16 Jan 2018 16:27:33 +0000 (17:27 +0100)]
remove duplicate timeout check

There's no need of checking for timeouts in GNUNET_SCHEDULER_task_ready,
as the check is done in GNUNET_SCHEDULER_run_from_driver.

6 years agorps: start using statistics service
Julius Bünger [Mon, 15 Jan 2018 17:13:39 +0000 (18:13 +0100)]
rps: start using statistics service

6 years agoMerge branch 'master' of gnunet.org:gnunet
ng0 [Tue, 16 Jan 2018 13:12:59 +0000 (13:12 +0000)]
Merge branch 'master' of gnunet.org:gnunet

6 years agoREADME: clarify texinfo dependency
ng0 [Tue, 16 Jan 2018 09:57:58 +0000 (09:57 +0000)]
README: clarify texinfo dependency

6 years agoMerge branch 'master' of ssh://gnunet.org/gnunet
xrs [Mon, 15 Jan 2018 16:57:34 +0000 (17:57 +0100)]
Merge branch 'master' of ssh://gnunet.org/gnunet

6 years agoadditionally check that size returned by Postgres matches
Christian Grothoff [Mon, 15 Jan 2018 14:15:42 +0000 (15:15 +0100)]
additionally check that size returned by Postgres matches

6 years agoUninitialized read
David Barksdale [Mon, 15 Jan 2018 05:17:24 +0000 (23:17 -0600)]
Uninitialized read

6 years agoUnused value
David Barksdale [Mon, 15 Jan 2018 05:06:51 +0000 (23:06 -0600)]
Unused value

6 years agoremove unused variables
lurchi [Sun, 14 Jan 2018 23:32:34 +0000 (00:32 +0100)]
remove unused variables

6 years agoAdding my ssh key
David Barksdale [Sun, 14 Jan 2018 23:08:25 +0000 (17:08 -0600)]
Adding my ssh key

6 years agoMakefile, configure.ac, doc/Makefile: Add the ability to opt-out of documentation...
ng0 [Sun, 14 Jan 2018 21:30:59 +0000 (21:30 +0000)]
Makefile, configure.ac, doc/Makefile: Add the ability to opt-out of documentation building with --disable-documentation, defaults to --enable-documentation

6 years agodist test_dht_tools.conf
Christian Grothoff [Sun, 14 Jan 2018 20:53:42 +0000 (21:53 +0100)]
dist test_dht_tools.conf

6 years agoguix-env.scm: texlive-tiny is enough for the info output
ng0 [Sun, 14 Jan 2018 19:05:48 +0000 (19:05 +0000)]
guix-env.scm: texlive-tiny is enough for the info output

6 years agoSQLite doesn't constant fold
David Barksdale [Sun, 14 Jan 2018 07:03:12 +0000 (01:03 -0600)]
SQLite doesn't constant fold

6 years agoFix force extend_path
David Barksdale [Sat, 13 Jan 2018 19:35:15 +0000 (13:35 -0600)]
Fix force extend_path

6 years agobe more generous for short-lived tests wrt quota
Christian Grothoff [Sat, 13 Jan 2018 16:09:25 +0000 (17:09 +0100)]
be more generous for short-lived tests wrt quota

6 years agoadded ssh key
lurchi [Sat, 13 Jan 2018 14:39:31 +0000 (15:39 +0100)]
added ssh key

6 years agouse assert to guard better against double-close on client side
Christian Grothoff [Sat, 13 Jan 2018 13:47:16 +0000 (14:47 +0100)]
use assert to guard better against double-close on client side

6 years agodo not die if client closes port it never opened
Christian Grothoff [Sat, 13 Jan 2018 13:46:26 +0000 (14:46 +0100)]
do not die if client closes port it never opened

6 years agoprevent assertion failure
Christian Grothoff [Sat, 13 Jan 2018 13:37:44 +0000 (14:37 +0100)]
prevent assertion failure

6 years agoprevent NPE
Christian Grothoff [Sat, 13 Jan 2018 13:35:06 +0000 (14:35 +0100)]
prevent NPE

6 years agofix reverse lookup from namestore
Schanzenbach, Martin [Fri, 12 Jan 2018 12:36:38 +0000 (13:36 +0100)]
fix reverse lookup from namestore

6 years agofix #5242 topology.txt write issue
Christian Grothoff [Fri, 12 Jan 2018 11:11:53 +0000 (12:11 +0100)]
fix #5242 topology.txt write issue

6 years agofix #5238
Christian Grothoff [Fri, 12 Jan 2018 11:03:49 +0000 (12:03 +0100)]
fix #5238

6 years agoTry to keep the cadet->code MQ from growing too large
David Barksdale [Thu, 11 Jan 2018 03:48:05 +0000 (21:48 -0600)]
Try to keep the cadet->code MQ from growing too large

6 years agogracefully accept empty FD set that claim to contain FDs
lurchi [Wed, 10 Jan 2018 22:14:55 +0000 (23:14 +0100)]
gracefully accept empty FD set that claim to contain FDs

6 years agoTry to keep the fs->core MQ from growing too large
David Barksdale [Wed, 10 Jan 2018 19:15:12 +0000 (13:15 -0600)]
Try to keep the fs->core MQ from growing too large

6 years agoproperly detect calling add_select without descriptors; simplify extract_handles
lurchi [Wed, 10 Jan 2018 16:19:44 +0000 (17:19 +0100)]
properly detect calling add_select without descriptors; simplify extract_handles

6 years agofix scheduler when add_select is called with 0 ready fds
Schanzenbach, Martin [Wed, 10 Jan 2018 03:29:06 +0000 (04:29 +0100)]
fix scheduler when add_select is called with 0 ready fds

6 years agoalways set task NULL when cancel; make sure SCHEDULER_add* doesn't get invalid input
lurchi [Mon, 8 Jan 2018 19:24:52 +0000 (20:24 +0100)]
always set task NULL when cancel; make sure SCHEDULER_add* doesn't get invalid input

6 years agoadd description to chap dev
ng0 [Mon, 8 Jan 2018 18:25:55 +0000 (18:25 +0000)]
add description to chap dev

6 years agoMerge branch 'master' of gnunet.org:gnunet
ng0 [Mon, 8 Jan 2018 16:18:27 +0000 (16:18 +0000)]
Merge branch 'master' of gnunet.org:gnunet

6 years agodoc chapter developer: typo fixes, link fix
ng0 [Mon, 8 Jan 2018 16:18:18 +0000 (16:18 +0000)]
doc chapter developer: typo fixes, link fix

6 years agorps tests: proper implementation of flags for tests
Julius Bünger [Mon, 8 Jan 2018 16:12:01 +0000 (17:12 +0100)]
rps tests: proper implementation of flags for tests

6 years agotypofix
amirouche [Sun, 7 Jan 2018 22:48:52 +0000 (23:48 +0100)]
typofix

Signed-off-by: ng0 <ng0@n0.is>
6 years agoMerge branch 'master' of gnunet.org:gnunet
ng0 [Mon, 8 Jan 2018 15:25:23 +0000 (15:25 +0000)]
Merge branch 'master' of gnunet.org:gnunet

6 years agoclean up contrib: move 2 guix files to the root level. folder structure will be moved...
ng0 [Mon, 8 Jan 2018 15:21:23 +0000 (15:21 +0000)]
clean up contrib: move 2 guix files to the root level. folder structure will be moved to https://c.n0.is/ng0_guix/packages

6 years agorps tests: possibly end non-churn-tests before timeout gnunet-0.11.0rc0
Julius Bünger [Sun, 7 Jan 2018 22:51:06 +0000 (23:51 +0100)]
rps tests: possibly end non-churn-tests before timeout

6 years agorps tests: remove assertion
Julius Bünger [Sun, 7 Jan 2018 22:09:35 +0000 (23:09 +0100)]
rps tests: remove assertion

6 years agoMerge branch 'master' of git+ssh://gnunet.org/gnunet
Schanzenbach, Martin [Mon, 8 Jan 2018 06:58:36 +0000 (07:58 +0100)]
Merge branch 'master' of git+ssh://gnunet.org/gnunet

6 years agobugfixes
Schanzenbach, Martin [Mon, 8 Jan 2018 06:58:33 +0000 (07:58 +0100)]
bugfixes

6 years agoadd psyc test
xrs [Mon, 8 Jan 2018 05:26:42 +0000 (06:26 +0100)]
add psyc test

6 years agomore size checking; tokenize only after size check
lurchi [Sun, 7 Jan 2018 21:34:39 +0000 (22:34 +0100)]
more size checking; tokenize only after size check

6 years agorps tests: cosmetics
Julius Bünger [Sun, 7 Jan 2018 21:32:24 +0000 (22:32 +0100)]
rps tests: cosmetics

6 years agorps tests: sanity checks and cosmetics
Julius Bünger [Sun, 7 Jan 2018 21:10:21 +0000 (22:10 +0100)]
rps tests: sanity checks and cosmetics

6 years agorps tests: change function signature, comments
Julius Bünger [Sun, 7 Jan 2018 21:09:35 +0000 (22:09 +0100)]
rps tests: change function signature, comments

6 years agorps tests: proper shutdown
Julius Bünger [Sun, 7 Jan 2018 21:07:31 +0000 (22:07 +0100)]
rps tests: proper shutdown

6 years agorps tests: check whether peer was scheduled to go off/online
Julius Bünger [Sun, 7 Jan 2018 21:05:52 +0000 (22:05 +0100)]
rps tests: check whether peer was scheduled to go off/online

6 years agorps tests: make sure no callback executes after shutdown
Julius Bünger [Sun, 7 Jan 2018 20:03:24 +0000 (21:03 +0100)]
rps tests: make sure no callback executes after shutdown

6 years agorps tests: comments and logging
Julius Bünger [Sun, 7 Jan 2018 19:59:54 +0000 (20:59 +0100)]
rps tests: comments and logging

6 years agovsprintf returns negative on error.
anryko [Sun, 7 Jan 2018 19:20:11 +0000 (20:20 +0100)]
vsprintf returns negative on error.

6 years agoproperly check size of MsgProcRequest
lurchi [Sun, 7 Jan 2018 17:35:39 +0000 (18:35 +0100)]
properly check size of MsgProcRequest

6 years agoStyle fixes (mostly tabs to spaces).
anryko [Sun, 7 Jan 2018 17:30:35 +0000 (18:30 +0100)]
Style fixes (mostly tabs to spaces).

6 years agotransport: [fix] Typos in comments
Matthias Kolja Miehl [Sun, 7 Jan 2018 14:55:25 +0000 (15:55 +0100)]
transport: [fix] Typos in comments

6 years agognunet-c-tutorial: [fix] Add missing 'make' commands
Matthias Kolja Miehl [Sun, 7 Jan 2018 14:22:43 +0000 (15:22 +0100)]
gnunet-c-tutorial: [fix] Add missing 'make' commands

6 years agofix dereferencing uninitialized rs/ws; assert non-NULL before dereferencing network...
lurchi [Sun, 7 Jan 2018 15:18:32 +0000 (16:18 +0100)]
fix dereferencing uninitialized rs/ws; assert non-NULL before dereferencing network/file handles

6 years agoRevert "fix dereferencing uninitialized pointer"
lurchi [Sun, 7 Jan 2018 15:13:02 +0000 (16:13 +0100)]
Revert "fix dereferencing uninitialized pointer"

This reverts commit 201a67be13ae31b4eb7fb8ad38b349fe287c0baf.

6 years agoFixed potential NULL dereference.
anryko [Sun, 7 Jan 2018 14:43:29 +0000 (15:43 +0100)]
Fixed potential NULL dereference.

6 years agoMerge branch 'master' of ssh://gnunet.org/gnunet
xrs [Sun, 7 Jan 2018 00:00:40 +0000 (01:00 +0100)]
Merge branch 'master' of ssh://gnunet.org/gnunet

6 years agoMerge branch 'master' of https://gnunet.org/git/gnunet
lurchi [Sat, 6 Jan 2018 23:59:50 +0000 (00:59 +0100)]
Merge branch 'master' of https://gnunet.org/git/gnunet

6 years agoshutdown might happen when plc_gst is not in the hashmap
lurchi [Sat, 6 Jan 2018 23:59:40 +0000 (00:59 +0100)]
shutdown might happen when plc_gst is not in the hashmap