|
From: | Wen Xichang |
Subject: | [lwip-devel] [bug #49848] Non-blocking socket emit a sock error while read return EWOULDBLOCK |
Date: | Thu, 15 Dec 2016 10:00:28 +0000 (UTC) |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36 |
URL: <http://savannah.nongnu.org/bugs/?49848> Summary: Non-blocking socket emit a sock error while read return EWOULDBLOCK Project: lwIP - A Lightweight TCP/IP stack Submitted by: wenxichang Submitted on: Thu Dec 15 10:00:27 2016 Category: sockets/netconn Severity: 3 - Normal Item Group: Faulty Behaviour Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: None lwIP version: 2.0.0 _______________________________________________________ Details: if (netconn_is_nonblocking(sock->conn) && (sock->rcvevent <= 0)) { LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_accept(%d): returning EWOULDBLOCK\n", s)); sock_set_errno(sock, EWOULDBLOCK); <-------- shoud set errno only return -1; } same in lwip_recvfrom function. the behavior is diff from linux(2.6+) (don't have other unix) _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?49848> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |