Acc'd to djb, this is the safest way to tell if nonblocking connect failed; also, in some cases the read handler may be called with actual data before the writable handler is called!
Acc'd to djb, this is the safest way to tell if nonblocking connect failed; also, in some cases the read handler may be called with actual data before the writable handler is called!

dieseldev/diesel