diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-07 23:29:41 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-05-31 21:19:24 +0200 |
commit | 05658ecb5582d7dab9e275a33db698e44413d4a7 (patch) | |
tree | b4eea883e610f852ff06f89e1d2572d17191ad70 /slirp/socket.c | |
parent | 058665b9fe8b00c799b3db5d9202b007fab1c2fb (diff) | |
download | qemu-05658ecb5582d7dab9e275a33db698e44413d4a7.zip qemu-05658ecb5582d7dab9e275a33db698e44413d4a7.tar.gz qemu-05658ecb5582d7dab9e275a33db698e44413d4a7.tar.bz2 |
slirp: disable Nagle in ingoing connections
This follows 3929766fb3e4 ('slirp: disable Nagle in outgoing connections'):
for the same reasons, ingoing connections should have the Nagle algorithm disabled.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'slirp/socket.c')
-rw-r--r-- | slirp/socket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/slirp/socket.c b/slirp/socket.c index 61347d1..6f18e15 100644 --- a/slirp/socket.c +++ b/slirp/socket.c @@ -754,6 +754,8 @@ tcp_listen(Slirp *slirp, uint32_t haddr, u_int hport, uint32_t laddr, return NULL; } qemu_setsockopt(s, SOL_SOCKET, SO_OOBINLINE, &opt, sizeof(int)); + opt = 1; + qemu_setsockopt(s, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(int)); getsockname(s,(struct sockaddr *)&addr,&addrlen); so->so_ffamily = AF_INET; |