[tarantool-patches] [PATCH 3/4] session: introduce 'dead' type

Konstantin Osipov kostja at tarantool.org
Fri Dec 7 20:38:56 MSK 2018


* Vladislav Shpilevoy <v.shpilevoy at tarantool.org> [18/12/07 18:48]:
> If an iproto connection is closed, there are no way
> how to determine if this happened. Except setting an
> on_disconnect trigger which sets a global flag or
> something.
> 
> To deal with such orphan requests a new session type
> is introduced that can be checked inside a request.

Please don't reset session type when it becomes dead.
What's the problem with storing an explicit vtab pointer in the
session and resetting it? 
> 
> Needed for #3859
> ---
>  src/box/session.cc |  2 ++
>  src/box/session.h  | 14 ++++++++++++++
>  2 files changed, 16 insertions(+)
> 

-- 
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