Hi I am using libuv for a server application. When the server needs to close a client connection that has not hand-shaked correctly, I would like to reset the TCP connection rather than calling close() - this is to prevent having many sockets in the TIME_WAIT on the server side.
I've looked at the libuv headers; there doesnt' seem any utility methods for reseting a uv_tcp_t object (e.g., naively I was hoping for a reset(...) call); nor is there any helper method for setting LINGER, although some socket options do have utility methods, eg uv_tcp_nodelay & uv_tcp_keepalive. I'm curious as to why some socket options have an API but others don't. For my requirement to reset a tcp connection, am I correct in there not being direct libuv support, or have I missed something? In which case I suppose I can just call setsockopt directly on the fd. Thanks, Darren -- 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 https://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
