On Sun, Mar 15, 2015 at 7:41 AM, Ashish <[email protected]> wrote:
> In uv_process_tcp_accept_req function in (tcp.c) libuv says:
>
>   /* If handle->accepted_socket is not a valid socket, then */
>   /* uv_queue_accept must have failed. This is a serious error. We stop */
>   /* accepting connections and report this error to the connection */
>   /* callback. */
>
> What does this mean for application? It should not call uv_accept on any
> further connections?
> If yes, how can we close those connections (which have not been accepted so
> no handle associated with them to close)

You are expected to close the listen socket (i.e. the server socket)
when an error is reported to your connection callback.  Or you can
turn the status check in your callback into an assert, a non-zero
status almost certainly means there is a bug in libuv or your program.

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to