Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [SERVER] jansson < 2.6 compat | Simon Rettberg | 2017-11-10 | 1 | -0/+5 |
| | |||||
* | [SERVER] rpc: Add q=logfile, q=altservers and q=config to /query | Simon Rettberg | 2017-11-08 | 1 | -0/+36 |
| | |||||
* | [SERVER] Add --errormsg to only serve HTTP-JSON error code | Simon Rettberg | 2017-11-02 | 1 | -0/+13 |
| | | | | | This could have been an external tool, but this didn't add much code and has the benefit of honoring the config file for port and bind address. | ||||
* | [SERVER] rpc: Keep track of and cap number of active http sessions | Simon Rettberg | 2017-11-01 | 1 | -11/+57 |
| | |||||
* | [SERVER] rpc: Remove old TODO, set thread name for persistent connections | Simon Rettberg | 2017-11-01 | 1 | -1/+5 |
| | |||||
* | [SERVER] rpc: encoding of our reply is utf-8, add to reply header | Simon Rettberg | 2017-10-30 | 1 | -1/+1 |
| | |||||
* | [SERVER] Add AFL support | Simon Rettberg | 2017-10-30 | 1 | -0/+11 |
| | | | | | | | | | | | AFL is an instrumenting fuzzer. It expects to pass input to the program to be tested via command line (file name) or via stdin. This adds support for reading messages that normally would arrive via network directly from stdin. In this mode, the server is pretty useless otherwise. http://lcamtuf.coredump.cx/afl/ | ||||
* | [SERVER] rpc: Honor client's Connection header, add some comments | Simon Rettberg | 2017-10-30 | 1 | -35/+106 |
| | |||||
* | [SERVER] Don't send error 500 to client on local connection timeout | Simon Rettberg | 2017-10-30 | 1 | -1/+3 |
| | |||||
* | [*] Introduce constants for IPv4/6 in dnbd3_host_t | Simon Rettberg | 2017-10-28 | 1 | -2/+2 |
| | | | | | | | AF_INET luckily was "2" on all platforms checked, so no problems there with interoperation, but AF_INET6 is different between Linux, BSD, Windows and possibly others, so map back and forth between AF_INET/AF_INET6 and HOST_IP4/HOST_IP6 to fix this. | ||||
* | [SERVER] Add function to parse x-www-form-urlencoded strings | Simon Rettberg | 2017-10-28 | 1 | -25/+46 |
| | | | | | | Use it to properly parse RPC queries. Will also come in handy when parsing POST body for calls that actually trigger any actions in the server (reload, alt-servers, ...) | ||||
* | [SERVER] Use picohttpparser from h2o | Simon Rettberg | 2017-10-26 | 1 | -48/+55 |
| | | | | | | | Simple and lean interface, no bloat, noice. Slighly modified to use a simple string struct for passing around strings that are not null terminated, instead of separate char* and length. | ||||
* | [SERVER] Fix types or add explicit casts everywhere we might have type ↵ | Simon Rettberg | 2017-10-24 | 1 | -2/+2 |
| | | | | conversion problems | ||||
* | [SERVER] rpc: Support querying storage size + available space | Simon Rettberg | 2017-10-11 | 1 | -1/+13 |
| | |||||
* | [SERVER] rpc: Return a unique id generated at startup with each reply | Simon Rettberg | 2017-10-06 | 1 | -4/+19 |
| | |||||
* | [SERVER] Return client count when requesting stats but not client list | Simon Rettberg | 2017-10-06 | 1 | -3/+7 |
| | |||||
* | [SERVER] rpc: Fix bitmask calc for odd subnet sizes (not 8, 16, ...) | Simon Rettberg | 2017-10-04 | 1 | -1/+1 |
| | |||||
* | [SERVER] Implement HTTP RPC that supports different queries and ACL | Simon Rettberg | 2017-10-01 | 1 | -22/+241 |
| | | | | | | | | | - ACL is defined in new file rpc.acl - Queries are still WIP, for now something like /query?q=stats&q=images /query?q=clients works, although the parsing is still ugly - Also supports HTTP keep-alive | ||||
* | [SERVER] Refactor: Move client list to net.* and isolate | Simon Rettberg | 2017-09-07 | 1 | -47/+3 |
| | |||||
* | cleanup commits | Sebastian | 2016-02-11 | 1 | -9/+2 |
| | |||||
* | [SERVER] Fix a lot of (mostly harmless) data races | Simon Rettberg | 2016-01-11 | 1 | -15/+15 |
| | |||||
* | [SERVER] More fine grained locking for RPC; better error logging | Simon Rettberg | 2015-12-16 | 1 | -16/+45 |
| | |||||
* | [SERVER] Update includes for moved log.h | Simon Rettberg | 2015-12-02 | 1 | -1/+1 |
| | |||||
* | [FUSE] Mid-refactoring, does not compile | Simon Rettberg | 2015-11-24 | 1 | -1/+1 |
| | |||||
* | [SERVER] Renamed image_fillJson to image_getListAsJson. | Stephan Schwaer | 2015-05-08 | 1 | -1/+1 |
| | |||||
* | [SERVER] Rename some more RPC fields | Simon Rettberg | 2015-05-08 | 1 | -1/+1 |
| | |||||
* | [SERVER] Add image ID for easier handling in RPC, export RID via RPC, make ↵ | Simon Rettberg | 2015-05-08 | 1 | -8/+10 |
| | | | | names of the byte count fields in RPC consistent | ||||
* | [SERVER] Fix premature connection close for RPC replies | Simon Rettberg | 2015-05-05 | 1 | -7/+10 |
| | |||||
* | [Server] Added statistics of images and uptime to json. | Stephan Schwaer | 2015-05-05 | 1 | -10/+14 |
| | |||||
* | Removed dnbd3_printClients, added clients to statistics json in rpc. | Stephan Schwaer | 2015-05-04 | 1 | -10/+47 |
| | |||||
* | [SERVER] PoC RPC interface | schwaers | 2015-04-30 | 1 | -0/+18 |
| | |||||
* | Rewriting.... | sr | 2013-07-08 | 1 | -810/+0 |
| | |||||
* | [SERVER] Add IPv6 support (clients and RPC connections) | sr | 2013-01-15 | 1 | -82/+68 |
| | |||||
* | [SERVER] Add socket helper module to simplify connection setup | sr | 2013-01-15 | 1 | -18/+2 |
| | | | | [SERVER] Add more comments to job.c | ||||
* | [SERVER] RPC: Fix return code when adding and removing trusted name spaces | sr | 2013-01-04 | 1 | -6/+10 |
| | |||||
* | [SERVER] pthread_spin_lock != pthread_spin_unlock | sr | 2013-01-03 | 1 | -4/+14 |
| | | | | [SERVER] Implement RPC_DEL_IMG | ||||
* | [SERVER] Fix RPC_ADD_IMG | sr | 2013-01-02 | 1 | -2/+3 |
| | |||||
* | [SERVER] Remove unused default-namespace code | sr | 2012-12-20 | 1 | -0/+2 |
| | |||||
* | [SERVER] Refactor code | sr | 2012-12-19 | 1 | -0/+823 |
[SERVER] Return List of Alt Servers on RPC_IMG_LIST |