Jeremy Lakeman
58ea5a1c8b
Simplify fetch decisions when manifest arrives
2014-06-28 17:41:05 +09:30
Jeremy Lakeman
588b95ab20
Ensure temporary id is unique
2014-06-28 17:36:06 +09:30
Jeremy Lakeman
b5bafe3c50
Sort timing details by duration then call count
2014-06-27 15:08:25 +09:30
Jeremy Lakeman
804cc93be6
Fix HTTP transfers of large payloads
2014-06-27 15:07:26 +09:30
Jeremy Lakeman
186b6cbc2f
Allow more servald's to be running during tests
2014-06-27 12:46:29 +09:30
Jeremy Lakeman
537a09812c
Ignore some types of sendto errors
2014-06-27 12:45:53 +09:30
Jeremy Lakeman
42a50e5c13
Reduce memory usage when there are no bars to fetch
2014-06-27 12:20:26 +09:30
Jeremy Lakeman
63f02607e6
Fix duplicate payload detection over unicast links
2014-06-26 17:20:06 +09:30
Jeremy Lakeman
a9545ea004
Display where packets came from in debug messages
2014-06-26 16:47:23 +09:30
Andrew Bettison
6c16b95a38
Fix SEGV on empty /restful/meshms/.../conversationlist.json
2014-06-26 15:08:48 +09:30
Andrew Bettison
776d4de894
Split up 'rhizomehttp' test script
...
New scripts 'rhizomerestful' and 'meshmsrestful'
New testdefs_json.sh
Improved testdefs.sh functions for discovering HTTP server port
2014-06-26 15:08:48 +09:30
Jeremy Lakeman
5df5a33721
Measure free space on Android using statfs()
2014-06-26 12:17:36 +09:30
Jeremy Lakeman
82b13caac4
Deprecate JNI meshms interface
2014-06-25 12:52:47 +09:30
Jeremy Lakeman
2cdd2cec81
Use Long (int64) for meshms offsets
2014-06-25 12:52:25 +09:30
Andrew Bettison
660daf0438
Merge latest MeshMS Java API additions into 'development'
2014-06-24 15:10:16 +09:30
Andrew Bettison
c79a382a27
MeshMS Java API: mark messages as read
2014-06-24 12:12:48 +09:30
Andrew Bettison
7736a4ceb1
New HTTP RESTful requests: MeshMS read message(s)
2014-06-24 12:11:58 +09:30
Jeremy Lakeman
0cb68c98a3
Open the database immediately on config load
2014-06-23 15:31:26 +09:30
Jeremy Lakeman
7d86fcd573
Add java API wrapper for performing multiple config changes in one hit
2014-06-23 15:31:25 +09:30
Jeremy Lakeman
9f6ace518a
Test that msp listen --service_name shuts down
2014-06-23 14:23:30 +09:30
Jeremy Lakeman
ca8f651b8d
Cleanup the rhizome database every 30 minutes or so
2014-06-23 13:49:58 +09:30
Andrew Bettison
eba7f6555f
MeshMS Java API: send message
2014-06-23 13:20:57 +09:30
Jeremy Lakeman
2ef73884a1
Add configurable limit to ensure a minimum amount of free space is preserved
...
- default to 100MB of free space
- currently disabled on android due to missing sys/statvfs.h
2014-06-23 13:06:21 +09:30
Andrew Bettison
819b8dc9e7
MeshMS RESTful API stricter on incoming form data
...
/restful/meshms/SID/SID/sendmessage now enforces Content-Disposition:
form-data (was ignoring), and enforces Content-Type: text/plain;
charset=utf-8 (was ignoring)
New negative test cases to ensure that these are treated strictly
2014-06-23 12:27:09 +09:30
Jeremy Lakeman
533c0be445
Rename mdp lookup helper function to match class name
2014-06-20 15:14:00 +09:30
Jeremy Lakeman
68dbaef38d
Refactor Java API
...
Add stateful class to represent the state of the serval daemon, shifting some functions from BatPhone
Add convenience functions to get pre-configured MDP and HTTP Restful client classes
2014-06-20 10:55:09 +09:30
Jeremy Lakeman
47f051917d
Rhizome cleanup will now expire payloads and vacuum the db file.
2014-06-19 14:23:43 +09:30
Andrew Bettison
f948f8e12e
Include Java tests in 'tests/all' if Java compiler available
2014-06-19 11:38:39 +09:30
Andrew Bettison
b14c58bdf6
Merge NAF4 MeshMS Java API into development
...
Currently implements "list conversations" and "list messages"
2014-06-19 11:21:37 +09:30
Jeremy Lakeman
7ff89afcf4
Reinstate rhizome database storage limit
...
- old / large payloads should be evicted to fit more payloads
- if there isn't enough space, new payloads will not be added
2014-06-19 11:09:09 +09:30
Andrew Bettison
e9437e9a61
MeshMS Java API: list messages
2014-06-19 10:37:33 +09:30
Andrew Bettison
0a54414744
Refactor Java JSON parsing into JSONTokeniser
2014-06-19 09:55:12 +09:30
Andrew Bettison
9cbd7c365c
MeshMS Java API: list conversations
2014-06-19 09:55:12 +09:30
Andrew Bettison
d879189299
Fix HTTP Authorization header parsing
...
Was returning status 500 if Authorization: Basic token was long, because
_reserve() did not have enough free space at start of buffer. The
solution was to _commit(r) before attempting the _reserve_str() calls
for the decoded username and password.
As a separate issue, the status 500 also triggered an assertion failure
because http_request_parse_header() was returning 400 but
response.result_code had already been set to 500.
2014-06-19 09:55:12 +09:30
Andrew Bettison
f2772b0ce8
Refactor tests: testdefs_java.sh, testdefs_meshms.sh
...
meshms_add_messages() now puts message texts into TEXT[$n] array
instead of "text$n" files
2014-06-19 09:54:29 +09:30
Andrew Bettison
4fbaf8865a
Improve test framework: create_file
...
create_file '-' sends to standard output
create_file --label=LABEL
create_file passes other options to tfw_createfile
2014-06-19 09:52:17 +09:30
Jeremy Lakeman
f4e6841ed7
Ensure directory service tests aren't creating a global routing table
2014-06-16 17:22:46 +09:30
Jeremy Lakeman
e375e17faa
Fix coverage test documentation to reflect changes required to support clang
2014-06-16 16:11:11 +09:30
Jeremy Lakeman
80e139c2d9
Ensure orphan payloads or manifests are cleaned up
2014-06-16 15:56:31 +09:30
Jeremy Lakeman
f63e7fee19
Introduce typedef for handling BAR values
2014-06-16 14:38:14 +09:30
Jeremy Lakeman
dabd482ad8
Only send broadcast ticks every 5 seconds when we have no neighbours
2014-06-13 15:34:47 +09:30
Jeremy Lakeman
628a52ca87
Add monitor message for interface up/down events
2014-06-13 13:34:10 +09:30
Jeremy Lakeman
ee37385ec7
Recalculate routing table after last neighbours is lost, or interface is down
2014-06-12 17:15:29 +09:30
Jeremy Lakeman
e5e848e838
Ensure interface and routing alarms stop when network interfaces are all down
2014-06-12 16:04:15 +09:30
Andrew Bettison
55b9de721e
Add assertions to http_server_poll()
...
This might help discover the cause of the "runaway http_server_poll"
bug sometimes observed in Batphone
2014-06-12 15:57:45 +09:30
Jeremy Lakeman
3e601aa5af
Allow for an msp handler that closes another socket, dont consider a closed socket to be listening
2014-06-12 11:15:41 +09:30
Jeremy Lakeman
52da7778cd
Allow closing a monitor connection to force the server to quit
2014-06-11 20:39:26 +09:30
Jeremy Lakeman
77dc7fc14c
Disable and remove pthreads to support compiling with clang
2014-06-11 20:32:16 +09:30
Andrew Bettison
d46939f81e
Improve server start/stop logic
...
Unlink server pidfile on orderly exit
Only call serverCleanUp() in server process, not in "start" command
(fixes race condition)
2014-06-11 15:18:25 +09:30
Andrew Bettison
a1c42eb378
Move serverMode flag from log.c to server.c
2014-06-11 14:53:26 +09:30