Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [FUSE] Fix termination condition for reading host list | Simon Rettberg | 2023-02-14 | 1 | -1/+1 |
| | |||||
* | [FUSE] Make initial connect entirely parallel wrt servers | Simon Rettberg | 2023-02-12 | 1 | -111/+232 |
| | | | | | | | | | | | | Previously, we only did the actual socket connect in a concurrent matter. Once a connection was successfully established, we did a blocking handshake on the protocol level. If the server war particularly slow, this was bad as we would not try other servers until after this. Throw out the previous non-blocking async connect logic, switching to a multi-threaded approach, that spawns one thread per host/ip, offset by 200ms, until one of the attempts succeeds. | ||||
* | [FUSE] Fix AIOOB access | Simon Rettberg | 2023-02-12 | 1 | -2/+1 |
| | |||||
* | [FUSE] Adapt to changed macro names | Simon Rettberg | 2022-05-20 | 1 | -4/+4 |
| | |||||
* | [BUILD] Add check for stdatomic.h support | Manuel Bentele | 2021-06-16 | 1 | -0/+4 |
| | |||||
* | [BUILD] Add support in CMake to validate (lint) the source code | Manuel Bentele | 2021-03-04 | 1 | -3/+10 |
| | |||||
* | [FUSE] Fix build: Add dnbd3-build to dependencies | Simon Rettberg | 2020-12-08 | 1 | -1/+1 |
| | |||||
* | [BUILD] Include branch and build timestamp in binaries | Simon Rettberg | 2020-12-02 | 1 | -1/+3 |
| | |||||
* | [FUSE] removed unnecessary cmdln argument check for sticky mode | Manuel Bentele | 2020-10-30 | 1 | -6/+0 |
| | |||||
* | [BUILD] add build options to enable/disable build of dnbd3 components | Manuel Bentele | 2020-10-30 | 1 | -0/+2 |
| | |||||
* | [CLIENT] add feature to ignore propagated alternative servers (sticky mode) | Manuel Bentele | 2020-10-29 | 1 | -0/+6 |
| | |||||
* | [BUILD] remove the build requirement for an unused C++ compiler | Manuel Bentele | 2020-10-27 | 1 | -1/+2 |
| | | | | | This patch sets the programming languages of each CMake project to C. With this change, CMake does not search for an unused C++ compiler anymore. | ||||
* | [BUILD] add CMake targets to build binary and source packages with CPack | Manuel Bentele | 2020-10-22 | 2 | -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] add option to build the dnbd3-server with afl-fuzz support | Manuel Bentele | 2020-10-20 | 1 | -0/+2 |
| | | | | | The afl-fuzz support for the dnbd3-server requires an AFL C compiler like afl-gcc and can be enabled with the CMake option DNBD3_SERVER_AFL. | ||||
* | [BUILD] set build type and stop Release build if repository is dirty | Manuel Bentele | 2020-10-19 | 1 | -1/+1 |
| | |||||
* | [BUILD] fixes issues to build user space programs on FreeBSD 12.1 | Manuel Bentele | 2020-10-19 | 2 | -1/+2 |
| | |||||
* | [BUILD] rewrite CMake build system to track changes of source files | Manuel Bentele | 2020-10-16 | 6 | -17/+28 |
| | | | | | | | | | | 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. | ||||
* | [FUSE] Tweak timeout values to prevent stale status file | Simon Rettberg | 2020-07-24 | 1 | -3/+3 |
| | | | | | | | If we cat the stats file right after starting the fuse client, its contents will be cached forever. The exact cause is unknown, since the timeout was specified as one second, but setting it to 0 seems to fix this issue. | ||||
* | [FUSE] Fix returning pending request on RTT measurement | Simon Rettberg | 2020-07-24 | 3 | -15/+8 |
| | |||||
* | [FUSE] Cleanup | Simon Rettberg | 2020-07-24 | 2 | -33/+24 |
| | |||||
* | [FUSE] Detach old receive thread when creating anew one, update var | Simon Rettberg | 2020-07-24 | 1 | -2/+2 |
| | |||||
* | [FUSE] Refactor signal handling on termination again | Simon Rettberg | 2020-07-24 | 3 | -60/+55 |
| | |||||
* | [FUSE] Fix inode numbers | Simon Rettberg | 2020-07-24 | 1 | -14/+16 |
| | |||||
* | [FUSE] Minor cleanup and fixes | Simon Rettberg | 2020-07-21 | 1 | -59/+38 |
| | |||||
* | [FUSE] Properly signal worker threads to exit on shutdown | Simon Rettberg | 2020-07-21 | 3 | -24/+70 |
| | | | | | | Our main signal handler sends SUGHUP to the receiver and background threads, so if they block in some recv() or poll() they will get EINTR and can check keepRunning. | ||||
* | [FUSE] Formatting | Simon Rettberg | 2020-07-21 | 5 | -180/+183 |
| | |||||
* | [FUSE] Fix a bunch of warnings | Simon Rettberg | 2020-07-21 | 2 | -8/+11 |
| | |||||
* | leak fix in main | ln-tech | 2020-01-12 | 3 | -5/+12 |
| | |||||
* | fixed code: removed useless splicing, code optimization, commandline ↵ | ln-tech | 2020-01-08 | 4 | -113/+31 |
| | | | | arguments fixed, auto_cache in lowlevel activated, multi and single threaded modes are supported now | ||||
* | code fixes, keepRunning is back, threads seem to be safe | ln-tech | 2019-11-15 | 3 | -31/+18 |
| | |||||
* | SIGINT fix, Reader-Writer oroblem fix | ln-tech | 2019-11-13 | 4 | -36/+43 |
| | |||||
* | cleaned code | ln-tech | 2019-10-27 | 3 | -176/+19 |
| | |||||
* | cleaned code and atomic_ints against | ln-tech | 2019-10-27 | 4 | -67/+401 |
| | |||||
* | [FUSE] Increase socket timeout from 1 to 3 seconds | Simon Rettberg | 2019-08-28 | 1 | -2/+2 |
| | |||||
* | [FUSE] Add --sticky mode to ignore alt-servers announced by servers | Simon Rettberg | 2019-03-07 | 3 | -6/+16 |
| | |||||
* | [FUSE] Clean up argument handling, improve help | Simon Rettberg | 2019-03-07 | 1 | -19/+10 |
| | |||||
* | [FUSE] Use shared/timing.* instead of nowMilli/Micro | Simon Rettberg | 2019-02-09 | 2 | -57/+43 |
| | |||||
* | [FUSE] Consider RTT of active connection for switch-decisions | Simon Rettberg | 2019-02-08 | 2 | -55/+123 |
| | |||||
* | [FUSE] In panic mode, use a pending range for alt check | Simon Rettberg | 2018-07-05 | 1 | -5/+43 |
| | | | | | | | | If we lost connection and then go check all known alt servers, see if we have some pending request queued and if so, use its offset and length for the alt server probe. This ensures that the server being tested is able to satisfy at least the next request we'll send. | ||||
* | [FUSE] Return 0 instead of EIO if trying to read past end | Simon Rettberg | 2018-06-13 | 1 | -1/+1 |
| | | | | | read() calls are supposed to return 0 when reading at EOF, so properly mimic that behavior. | ||||
* | [FUSE] Move variables into block where they're being used | Simon Rettberg | 2018-06-13 | 1 | -4/+4 |
| | |||||
* | [SERVER] Option to disable timestamps on stdout/console (default: disabled) | Simon Rettberg | 2018-04-11 | 1 | -0/+1 |
| | |||||
* | [FUSE] Split final multiConnect-wait across multiple calls | Simon Rettberg | 2017-11-07 | 1 | -8/+8 |
| | | | | | | There might be more than one pending connect, but each call to multiConnect() can return at most one fd, so we could be ignoring some successful connections. | ||||
* | [FUSE] Reset salen before getpeername() call | Simon Rettberg | 2017-11-07 | 1 | -1/+2 |
| | |||||
* | [FUSE] Make use of sock_multiConnect() for initial connection | Simon Rettberg | 2017-11-06 | 1 | -10/+36 |
| | | | | | | This speeds up initialization with a long list of servers where the first in the list don't work, as the delay between servers is now lowered to 100ms. | ||||
* | [FUSE] Remember up to 16 alt servers, but work only with 5 | Simon Rettberg | 2017-11-04 | 1 | -8/+59 |
| | | | | | | | 5 servers are considered "active", that is, are being measured for their RTT regularly. If We have more than 5 servers and one of the active ones isn't reachable repeatedly, the two servers will swap position. | ||||
* | [FUSE] Fix printf warning for logadd call | Simon Rettberg | 2017-11-02 | 1 | -1/+1 |
| | |||||
* | [FUSE] Improve log messages a bit | Simon Rettberg | 2017-11-01 | 1 | -2/+5 |
| | |||||
* | [*] Mark logadd() as printf-style function, fix errors that it revealed | Simon Rettberg | 2017-10-31 | 1 | -2/+2 |
| | | | | ...there were quite a few format string errors as it turns out :/ | ||||
* | [*] 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. |