qemu-e2k/net
Stefan Hajnoczi fc13fa00ea net: ensure "socket" backend uses non-blocking fds
There are several code paths in net_init_socket() depending on how the
socket is created: file descriptor passing, UDP multicast, TCP, or UDP.
Some of these support both listen and connect.

Not all code paths set the socket to non-blocking.  This patch addresses
the file descriptor passing and UDP cases which were missing
socket_set_nonblock(fd) calls.

I considered moving socket_set_nonblock(fd) to a central location but it
turns out the code paths are different enough to require non-blocking at
different places.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2013-04-02 11:47:37 -04:00
..
checksum.c
clients.h
dump.c
eth.c
hub.c
hub.h
Makefile.objs
net.c net: increase buffer size to accommodate Jumbo frame pkts 2013-03-25 11:14:07 +01:00
queue.c
slirp.c
socket.c net: ensure "socket" backend uses non-blocking fds 2013-04-02 11:47:37 -04:00
tap_int.h
tap-aix.c
tap-bsd.c
tap-haiku.c
tap-linux.c
tap-linux.h
tap-solaris.c
tap-win32.c
tap.c net: increase buffer size to accommodate Jumbo frame pkts 2013-03-25 11:14:07 +01:00
util.c
util.h
vde.c net: increase buffer size to accommodate Jumbo frame pkts 2013-03-25 11:14:07 +01:00