Hello,

Thanks for the Cc.

I have applied it to my tree.  I don't think there is any reason to
avoid the same change for ingoing connections?  Could one of your review
the attached patch doing it?

Samuel
commit 99a9a5028e0e15aa3b17d6f884c1e5f48dccea90
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Wed Mar 7 23:29:41 2018 +0100

    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.thiba...@ens-lyon.org>

diff --git a/slirp/socket.c b/slirp/socket.c
index cb7b5b608d..81f67b5702 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;

Reply via email to