You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/io
Nir Soffer e2e360db7a io: Add helper for setting socket send buffer size
Testing reading and writing from qemu-nbd using a unix domain socket
shows that the platform default send buffer size is too low, leading to
poor performance and hight cpu usage.

Add a helper for setting socket send buffer size to be used in NBD code.
It can also be used in other contexts.

We don't need a helper for receive buffer size since it is not used with
unix domain sockets. This is documented for Linux, and not documented
for macOS.

Failing to set the socket buffer size is not a fatal error, but the
caller may want to warn about the failure.

Signed-off-by: Nir Soffer <nirsof@gmail.com>
Message-ID: <20250517201154.88456-2-nirsof@gmail.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
4 weeks ago
..
channel-buffer.c qom: Have class_init() take a const data argument 2 months ago
channel-command.c qom: Have class_init() take a const data argument 2 months ago
channel-file.c qom: Have class_init() take a const data argument 2 months ago
channel-null.c qom: Have class_init() take a const data argument 2 months ago
channel-socket.c io: Add helper for setting socket send buffer size 4 weeks ago
channel-tls.c qom: Have class_init() take a const data argument 2 months ago
channel-util.c io: follow coroutine AioContext in qio_channel_yield() 2 years ago
channel-watch.c win32: avoid mixing SOCKET and file descriptor space 2 years ago
channel-websock.c qom: Have class_init() take a const data argument 2 months ago
channel.c io: Add flags argument to qio_channel_readv_full_all_eof 4 months ago
dns-resolver.c io: Fix partial struct copy in qio_dns_resolver_lookup_sync_inet() 1 month ago
meson.build Revert "meson: Propagate gnutls dependency" 12 months ago
net-listener.c io: Stop appending -listen to net listeners 2 years ago
task.c io: Fix Lesser GPL version number 5 years ago
trace-events io: tls: Add qio_channel_tls_bye 4 months ago
trace.h trace: switch position of headers to what Meson requires 5 years ago