Convert non-blocking connect and fix its error reporting
Get series with b4
b4 am [email protected]Versions newest first
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | net/socket: Convert the non-blocking connection mechanism to QIOchannelnet/ | +19 | 6 replies | |
| 2/4 | net/socket: Improve -net socket error reportinginclude/ net/ util/ | +35 | 2 replies | |
| 3/4 | net/socket: Convert error report message to Errornet/ | +41 | 9 replies | |
| 4/4 | net/net: Convert parse_host_port() to Errorinclude/ net/ net/ | +24 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
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