Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [BUILD] add CMake targets to build binary and source packages with CPack | Manuel Bentele | 2020-10-22 | 1 | -2/+3 |
| | | | | | | | | | | | This patch adds the following CMake targets - package - source to build bundeled packages. Those packages contain either all built binary artifacts or all source files for source code distribution. Both CMake targets are available in Release build configuration. | ||||
* | [BUILD] set build type and stop Release build if repository is dirty | Manuel Bentele | 2020-10-19 | 1 | -2/+2 |
| | |||||
* | [BUILD] rewrite CMake build system to track changes of source files | Manuel Bentele | 2020-10-16 | 1 | -6/+6 |
| | | | | | | | | | | This change restructures the source code directories, separates shared form non-shared application code and adds CMake dependencies. These dependencies allow the tracking of changes and trigger a rebuild of those build targets where changed files are involved. WARNING: Note that the support of the DNBD3_SERVER_AFL build option is not supported yet. Thus, the option should be never turned on. | ||||
* | [SERVER] Shorter wait when closing socket after reply | Simon Rettberg | 2020-03-19 | 1 | -0/+2 |
| | |||||
* | [SERVER] Include build type and version in RPC | Simon Rettberg | 2020-03-17 | 1 | -2/+8 |
| | | | | Added new query type q=version, which uses the STATS access rights. | ||||
* | [SERVER] Handle "warn unused result" cases | Simon Rettberg | 2020-03-06 | 1 | -1/+1 |
| | |||||
* | [SERVER] Fix another nullpointer access | Simon Rettberg | 2019-10-30 | 1 | -1/+3 |
| | |||||
* | [SERVER] rpc: Fix warnings | Simon Rettberg | 2019-09-11 | 1 | -2/+2 |
| | |||||
* | [SERVER] rpc: Add cachemap feature | Simon Rettberg | 2019-09-06 | 1 | -0/+44 |
| | |||||
* | [SERVER] Make signal handling more POSIX | Simon Rettberg | 2019-08-28 | 1 | -5/+8 |
| | | | | | | | | | | | | | | | According to POSIX, a signal sent to a PID can be delivered to an arbitrary thread of that process that hasn't the signal blocked. This seens to never happen on Linux, but would mess things up since the code expected the main signal handler to only be executed by the main thread. This should now be fixed by examining the destination PID of the signal as well as the ID of the thread currently running the signal handler. If we notice the signal wasn't sent by our own PID and the handler is not currently run by the main thread, we re-send the signal to the main thread. Otherwise, if the signal was sent by our own PID but the handler is not run in the main thread, do nothing. This way we can use pthread_kill() to wake up threads that might be stuck in a blocking syscall when it's time to shut down. | ||||
* | [SERVER] Better lock debugging: Always check lock order | Simon Rettberg | 2019-08-07 | 1 | -11/+3 |
| | | | | | | Lock order is predefined in locks.h. Immediately bail out if a lock with lower priority is obtained while the same thread already holds one with higher priority. | ||||
* | [SERVER] Turn all spinlocks into mutexes | Simon Rettberg | 2019-07-26 | 1 | -17/+17 |
| | | | | | | | | Just assume sane platforms offer smart mutexes that have a fast-path with spinlocks internally for locks that have little to no congestion. In all other cases, mutexes should perform better anyways. | ||||
* | [SERVER] Fix json format string | Simon Rettberg | 2018-11-16 | 1 | -1/+1 |
| | | | | Don't drop runId | ||||
* | [SERVER] rpc: Distinguish between client and server (proxy) connections | Simon Rettberg | 2018-08-14 | 1 | -2/+3 |
| | |||||
* | [SERVER] Use atomic var for (total)bytesSent counters | Simon Rettberg | 2018-08-08 | 1 | -13/+8 |
| | | | | | | Gets rid of the lastBytesSent field as well as the stats lock per client. Cleaned and split up the messy net_clientsToJson function while at it. | ||||
* | [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 |
| |