[tarantool-patches] [PATCH 2/4] iproto: fire on_disconnect right after disconnect

Konstantin Osipov kostja at tarantool.org
Fri Dec 7 20:37:30 MSK 2018


* Vladislav Shpilevoy <v.shpilevoy at tarantool.org> [18/12/07 18:48]:
> Before the patch on_disconnect triggers were called
> only after last outstanding request had finished. It
> was enough for most goals. But after box.session.push
> was implemented, it appeared that it is impossible to
> return an error from push() if a connection is closed.
> 
> Tx session just does not know that a connection is
> already closed. The patch splits destroy and
> disconnect phases of an iproto connection lifecycle.
> Disconnect calls on_disconnect triggers and resets
> iproto socket fd. Destroy frees resources.

OK to push.

> Needed for #3859
 

-- 
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.io - www.twitter.com/kostja_osipov



More information about the Tarantool-patches mailing list