From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 27 Jun 2018 18:54:39 +0300 From: Konstantin Osipov Subject: Re: [PATCH] socket: fix race between unix tcp server stop and start Message-ID: <20180627155439.GA28358@chai> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: To: Vladimir Davydov Cc: tarantool-patches@freelists.org List-ID: * Vladimir Davydov [18/06/11 23:57]: > If called on a unix socket, bind(2) creates a new file, see unix(7). > When we stop a unix tcp server, we should remove that file. Currently, > we do it from the tcp server fiber, after the server loop is broken, > which happens when the socket is closed, see tcp_server_loop(). This > opens a time window for another tcp server to reuse the same path: > Pushed. -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov