search for: serve_over_tcp

Displaying 3 results from an estimated 3 matches for "serve_over_tcp".

Did you mean: dserve_over_tcp
2019 Sep 12
2
[PATCH libnbd 1/2] nbd_connect_tcp: Try to return errno from underlying connect(2) call.
When we make a TCP connection we have to make multiple underlying connect(2) calls, once for each address returned by getaddrinfo. Unfortunately this meant that we lost the errno from any of these calls: $ nbdsh -c 'h.connect_tcp ("localhost", "nbd")' nbd.Error: nbd_connect_tcp: connect: localhost:nbd: could not connect to remote host This commit saves the errno from
2019 Sep 12
0
[PATCH libnbd 2/2] interop: Retry TCP connections to qemu-nbd.
...sleep (1 << retry); + if (nbd_connect_tcp (nbd, "localhost", port_str) == -1) { + fprintf (stderr, "%s\n", nbd_get_error ()); + if (nbd_get_errno () != ECONNREFUSED) + goto out; + } + else break; } + if (retry == 5) + goto out; #else /* !SERVE_OVER_TCP */ -- 2.23.0
2019 Oct 01
3
[PATCH libnbd 0/2] Change qemu-nbd interop tests to use socket activation.
Now that we have implemented systemd socket activation, we can use this to run qemu-nbd in tests. The first patch leaves some dead code around (the -DSERVE_OVER_TCP=1 path). It's possible we might want to use this to test against a putative future NBD server that only supports TCP, but on the other hand maybe we should just remove it. Tests & valgrind still pass for me. Rich.