You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 4, 2018. It is now read-only.
Create sockets immediately in uv_tcp_init(), uv_udp_init(), etc. Don't defer until connect() or bind() time.
Benefits:
Less complex, don't have to remember socket options[1].
Drawbacks:
Changes API considerably. Caller now needs to specify the socket type upfront (e.g. IPv4 vs. IPv6). Then again, that means we can remove the uv_tcp_bind() / uv_tcp_bind4() dichotomy.
Pushes burden of async error reporting in case of e.g. EMFILE to user.
Create sockets immediately in uv_tcp_init(), uv_udp_init(), etc. Don't defer until connect() or bind() time.
Benefits:
Drawbacks:
I'm tentatively scheduling this for v0.8.
/cc @piscisaureus
[1] Currently broken in various ways. uv_tcp_keepalive() doesn't remember the delay, uv_udp_set_ttl() doesn't work at all, etc.