[tarantool-patches] [PATCH] iproto: init coio watcher before join/subscribe
Konstantin Osipov
kostja at tarantool.org
Thu May 16 11:38:17 MSK 2019
* Alexander Turenko <alexander.turenko at tarantool.org> [19/05/16 09:53]:
> box_process_join() and box_process_subscribe() use coio_write_xrow(),
> which calls coio_writev_timeout() under hood. If a socket will block at
> write() the function calls ev_io_start() to wake the fiber up when the
> socket will be ready to write. This code assumes that the watcher
> (struct ev_io) is initialized as coio watcher, i.e. coio_create() has
> been called.
the same comment is missing from the source code.
--
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
More information about the Tarantool-patches
mailing list