diff options
| author | Simon Rettberg | 2023-02-12 11:26:05 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2023-02-12 11:26:05 +0100 |
| commit | d3c25d55cfcbe56d7287c622c3d23814737ca49a (patch) | |
| tree | f6b7eacb58221b69131fbbf413def60ad606cefa /src/shared/serialize.c | |
| parent | [SHARED] sock_printable: Always null-terminate (diff) | |
| download | dnbd3-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/shared/serialize.c')
0 files changed, 0 insertions, 0 deletions
