NBD client: nodelay

This commit is contained in:
folkert van heusden 2024-05-01 18:53:48 +02:00
parent d7870fe63b
commit c244ade2f5
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -153,8 +153,10 @@ bool disk_backend_nbd::connect(const bool retry)
DOLOG(warning, true, "disk_backend_nbd::connect: magic invalid");
}
if (fd != -1)
if (fd != -1) {
DOLOG(info, false, "NBD size: %u", NTOHLL(nbd_hello.size));
set_nodelay(fd);
}
}
while(fd == -1 && retry);