Got the response: the connection must be first accepted and then, if I want that, closed. Not calling accept means that the TCP server queue will increase and reject with TCP RST when full.
-- Iñaki Baz Castillo <[email protected]> On Apr 27, 2014 7:32 PM, "Iñaki Baz Castillo" <[email protected]> wrote: > Thanks, but what I mean is: what does happen if in the uv_connection_cb I > don't call uv_accept ()? > And what if in the same cb I init a TCP handle and call to uv_close() > instead of uv_accept()? > > -- > Iñaki Baz Castillo > <[email protected]> > On Apr 27, 2014 5:59 PM, "Saúl Ibarra Corretgé" <[email protected]> wrote: > >> On 4/27/14 5:20 PM, Iñaki Baz Castillo wrote: >> >>> >>> Hi, is it valid to call uv_close on an initialized but not accepted TCP >>> connection handle? This is, without calling uv_accept first. >>> >>> >> Yes. If you called uv_*_init you *always* need to uv_close a handle in >> order to dispose it. >> >> >> -- >> Saúl Ibarra Corretgé >> http://bettercallsaghul.com >> >> -- >> 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. >> > -- 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.
