From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id E7766452566 for ; Sun, 17 Nov 2019 20:49:49 +0300 (MSK) Received: by mail-lj1-f194.google.com with SMTP id g3so16129768ljl.11 for ; Sun, 17 Nov 2019 09:49:49 -0800 (PST) Date: Sun, 17 Nov 2019 20:49:48 +0300 From: Konstantin Osipov Message-ID: <20191117174948.GC2498@atlas> References: <746ed8a74c07907f85db8ec08e9d1937afc44f08.1573864467.git.v.shpilevoy@tarantool.org> <20191116130740.GF14490@atlas> <600a3a99-532c-7521-aa66-e96c11e76987@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <600a3a99-532c-7521-aa66-e96c11e76987@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH v2 1/1] iproto: don't destroy a session during disconnect List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladislav Shpilevoy Cc: tarantool-patches@dev.tarantool.org * Vladislav Shpilevoy [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