On Sunday, March 15, 2015 at 4:08:04 PM UTC+5:30, Ben Noordhuis wrote: > > On Sun, Mar 15, 2015 at 7:41 AM, Ashish <[email protected] <javascript:>> > 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. >
Not sure where is the bug. But once in a while my server gets that error (code 4060, ENOBUFS, "no buffer space available") And I just need to restart the server in that case, is what I gather from your reply. Tnx, Ashish -- 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.
