Changeset 989 for vendor/current/lib/async_req
- Timestamp:
- Nov 25, 2016, 8:04:54 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/async_req/async_sock.c
r988 r989 129 129 130 130 /* 131 * The only errno indicating that the connect is still in 132 * flight is EINPROGRESS, everything else is an error 131 * The only errno indicating that an initial connect is still 132 * in flight is EINPROGRESS. 133 * 134 * We get EALREADY when someone calls us a second time for a 135 * given fd and the connect is still in flight (and returned 136 * EINPROGRESS the first time). 137 * 138 * This allows callers like open_socket_out_send() to reuse 139 * fds and call us with an fd for which the connect is still 140 * in flight. The proper thing to do for callers would be 141 * closing the fd and starting from scratch with a fresh 142 * socket. 133 143 */ 134 144 135 if (errno != EINPROGRESS ) {145 if (errno != EINPROGRESS && errno != EALREADY) { 136 146 tevent_req_error(req, errno); 137 147 return tevent_req_post(req, ev);
Note:
See TracChangeset
for help on using the changeset viewer.