[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 0/3] net: asynchronous send/receive for net/socke
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH v2 0/3] net: asynchronous send/receive for net/socket.c |
Date: |
Tue, 21 Aug 2012 16:52:28 +0100 |
The net subsystem supports non-blocking sockets and asynchronous send/receive.
Unfortunately, net/socket.c doesn't fully take advantage of that yet.
This patch series makes send asynchronous and drops code that will spin when
the non-blocking socket would block. Also take advantage of
qemu_set_fd_handler2()'s IOCanReadHandler so that we don't read packets from
the socket when our peer is unable to receive.
v2:
* Use iov.h instead of readv()/writev() [Peter/Paolo]
Stefan Hajnoczi (3):
net: asynchronous send/receive infrastructure for net/socket.c
net: EAGAIN handling for net/socket.c UDP
net: EAGAIN handling for net/socket.c TCP
net/socket.c | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++--------
1 file changed, 96 insertions(+), 14 deletions(-)
--
1.7.10.4
[Qemu-devel] [PATCH v2 2/3] net: EAGAIN handling for net/socket.c UDP, Stefan Hajnoczi, 2012/08/21
[Qemu-devel] [PATCH v2 3/3] net: EAGAIN handling for net/socket.c TCP, Stefan Hajnoczi, 2012/08/21
Re: [Qemu-devel] [PATCH v2 0/3] net: asynchronous send/receive for net/socket.c, Stefan Hajnoczi, 2012/08/29