summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorSimon Rettberg2023-02-12 11:26:05 +0100
committerSimon Rettberg2023-02-12 11:26:05 +0100
commitd3c25d55cfcbe56d7287c622c3d23814737ca49a (patch)
treef6b7eacb58221b69131fbbf413def60ad606cefa /src/server
parent[SHARED] sock_printable: Always null-terminate (diff)
downloaddnbd3-d3c25d55cfcbe56d7287c622c3d23814737ca49a.tar.gz
dnbd3-d3c25d55cfcbe56d7287c622c3d23814737ca49a.tar.xz
dnbd3-d3c25d55cfcbe56d7287c622c3d23814737ca49a.zip
[FUSE] Make initial connect entirely parallel wrt servers
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.
Diffstat (limited to 'src/server')
0 files changed, 0 insertions, 0 deletions