Skip to content

Convert non-blocking connect and fix its error reporting

Mao Zhongyi qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 21 repliesIn review

Changes in v2 from the cover letter

* PATCH 02 reworking of patch 2 following Markus's suggestion that convert error_report() in the function called by net_socket_*_init() to Error. Also add many error handling information.
* PATCH 03 net_socket_mcast_create(), net_socket_fd_init_dgram() and net_socket_fd_init() use the function such as fprintf, perror to report an error message. Convert it to Error.
* PATCH 04 parse_host_port() may fail without reporting an error. Now, fix it to set an error when it fails.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net/socket: Convert the non-blocking connection mechanism to QIOchannelnet/socket.c+19 -116 replies
2/4net/socket: Improve -net socket error reportinginclude/qemu/sockets.h net/socket.c util/qemu-sockets.c+35 -262 replies
3/4net/socket: Convert error report message to Errornet/socket.c+41 -259 replies
4/4net/net: Convert parse_host_port() to Errorinclude/qemu/sockets.h net/net.c net/socket.c+24 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/4] Convert non-blocking connect and fix its error reporting

v2:
* PATCH 02 reworking of patch 2 following Markus's suggestion that convert error_report() in the function called by net_socket_*_init() to Error. Also add many error handling information.
* PATCH 03 net_socket_mcast_create(), net_socket_fd_init_dgram() and net_socket_fd_init() use the function such as fprintf, perror to report an error message. Convert it to Error.
* PATCH 04 parse_host_port() may fail without reporting an error. Now, fix it to set an error when it fails.

Mao Zhongyi (4):
net/socket: Convert the non-blocking connection mechanism to
QIOchannel
net/socket: Improve -net socket error reporting net/socket: Convert error report message to Error net/net: Convert parse_host_port() to Error

 include/qemu/sockets.h |   4 +-
 net/net.c              |  21 +++++--
 net/socket.c           | 159 ++++++++++++++++++++++++++++++-------------------
 util/qemu-sockets.c    |   2 +-
 4 files changed, 117 insertions(+), 69 deletions(-)
Signature · 1 line
2.9.3