On Tue, May 17, 2016 at 5:54 PM, Super Twang <[email protected]> wrote: > > Thanks Ben. > > Just to clarify, when I receive a read, or write, error, I should: > > 1) free up any of my own data structures managing it > 2) do a uv_close on the handle? > 3) free/delete the handle struct
Correct. Only call free/delete in your close callback; many people make the mistake of freeing immediately after uv_close() returns. > With http being "Close-anytime", I guess the browser can just re-open a > connection if it thinks it needs one. Would the same logic apply to a > bidirectional websocket protocol? I don't see why not. -- 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.
