[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [QEMU] Add TCP_NODELAY to tcp connections exporting serial ports.



# HG changeset patch
# User PeterJohnston <peter.johnston@xxxxxxxxxxxxx>
# Node ID b8cc9ffda0a3dc449b026c72c97f78dea2e6f114
# Parent  a8d2b1393b769048c7b62822e45bef27eef80fb6
[QEMU] Add TCP_NODELAY to tcp connections exporting serial ports.

Signed-off-by: Steven Smith <sos22@xxxxxxxxx>
---
 tools/ioemu/vl.c |    3 +++
 1 files changed, 3 insertions(+)

diff -r a8d2b1393b76 -r b8cc9ffda0a3 tools/ioemu/vl.c
--- a/tools/ioemu/vl.c  Tue Nov 21 18:09:23 2006 -0800
+++ b/tools/ioemu/vl.c  Wed Nov 22 09:52:48 2006 -0700
@@ -2530,6 +2530,7 @@ static CharDriverState *qemu_chr_open_tc
     int is_waitconnect = 1;
     const char *ptr;
     struct sockaddr_in saddr;
+    int opt;
 
     if (parse_host_port(&saddr, host_str) < 0)
         goto fail;
@@ -2598,6 +2599,8 @@ static CharDriverState *qemu_chr_open_tc
             }
         }
         s->fd = fd;
+       opt = 1;
+       setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (char *)&opt, sizeof(opt));
         if (s->connected)
             tcp_chr_connect(chr);
         else

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.