Now that open_socket_out*() doesn't do the strange reentrant calls,
we can remove support for this in async_connect_send(), so that we'll
never get any new users of this.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
* The only errno indicating that an initial connect is still
* in flight is EINPROGRESS.
*
* The only errno indicating that an initial connect is still
* in flight is EINPROGRESS.
*
- * We get EALREADY when someone calls us a second time for a
- * given fd and the connect is still in flight (and returned
- * EINPROGRESS the first time).
- *
* This allows callers like open_socket_out_send() to reuse
* fds and call us with an fd for which the connect is still
* in flight. The proper thing to do for callers would be
* This allows callers like open_socket_out_send() to reuse
* fds and call us with an fd for which the connect is still
* in flight. The proper thing to do for callers would be
- if (errno != EINPROGRESS && errno != EALREADY) {
+ if (errno != EINPROGRESS) {
tevent_req_error(req, errno);
return tevent_req_post(req, ev);
}
tevent_req_error(req, errno);
return tevent_req_post(req, ev);
}