orthecreedence / cl-async

Asynchronous IO library for Common Lisp.
MIT License
273 stars 40 forks source link

Safeguard against late dns-lookup connect callbacks during event loop shutdown #127

Closed ivan4th closed 9 years ago

ivan4th commented 9 years ago

Sometimes dns-lookup callback may be invoked during event loop shutdown or after the socket was explicitly closed. That led to !uv__io_active(&stream->io_watcher, UV__POLLIN | UV__POLLOUT) (stream.c) assertion errors in libuv due to uv_tcp_connect() call on the socket.

orthecreedence commented 9 years ago

Looks great, good catch.