[Tarantool-patches] [PATCH v2 1/1] iproto: don't destroy a session during disconnect

Konstantin Osipov kostja.osipov at gmail.com
Sun Nov 17 20:49:48 MSK 2019


* Vladislav Shpilevoy <v.shpilevoy at tarantool.org> [19/11/17 20:44]:
> But I could replace both flags with a 'state':
> IPROTO_CON_ALIVE -> IPROTO_CON_CLOSED -> IPROTO_CON_PENDING_DESTROY,
> IPROTO_CON_DESTROYED.
> 
> Alive is an initial state. Closed is when the socket dies and
> disconnect is sent to TX. Pending destroy is an optional state,
> equivalent of do_destroy_on_close. Destroyed is an equivalent of
> is_destroy_sent.
> 
> If you think this is better, I can do that.
> 

I think it's better.


-- 
Konstantin Osipov, Moscow, Russia


More information about the Tarantool-patches mailing list