ia64/xen-unstable

changeset 12553:b8cc9ffda0a3

[QEMU] Add TCP_NODELAY to tcp connections exporting serial ports.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
author PeterJohnston <peter.johnston@xensource.com>
date Wed Nov 22 09:52:48 2006 -0700 (2006-11-22)
parents a8d2b1393b76
children a8d31d5ce258
files tools/ioemu/vl.c
line diff
     1.1 --- a/tools/ioemu/vl.c	Tue Nov 21 18:09:23 2006 -0800
     1.2 +++ b/tools/ioemu/vl.c	Wed Nov 22 09:52:48 2006 -0700
     1.3 @@ -2530,6 +2530,7 @@ static CharDriverState *qemu_chr_open_tc
     1.4      int is_waitconnect = 1;
     1.5      const char *ptr;
     1.6      struct sockaddr_in saddr;
     1.7 +    int opt;
     1.8  
     1.9      if (parse_host_port(&saddr, host_str) < 0)
    1.10          goto fail;
    1.11 @@ -2598,6 +2599,8 @@ static CharDriverState *qemu_chr_open_tc
    1.12              }
    1.13          }
    1.14          s->fd = fd;
    1.15 +	opt = 1;
    1.16 +	setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (char *)&opt, sizeof(opt));
    1.17          if (s->connected)
    1.18              tcp_chr_connect(chr);
    1.19          else