Skip to content
Snippets Groups Projects
Commit 287e157b authored by Nick Zavaritsky's avatar Nick Zavaritsky Committed by Roman Tsisyk
Browse files

Socket overhaul (1)

 * Internally, libev maintains a list of watchers for each monitored fd.
   Add ev_io_closing(fd), does ev_feed_event() for each watcher affected.

 * Add coio_close()  [Public API]
   Wakes all fibers blocked in coio_wait() AND closes the fd.
   Prerequisite for #886 Non-blocking popen.

 * Lua socket switched to coio_close(); stop tracking
   waiters explicitly.

 * socket ::= { _gc_socket = <ffi:struct gc_socket> }, _gc_socket
   was previously known as socket. Gc_socket stores the fd in
   immutable field.

 * Overall socket module cleanup.
parent 0e457085
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment