[PATCH] socket: fix race between unix tcp server stop and start

Konstantin Osipov kostja at tarantool.org
Wed Jun 27 18:54:39 MSK 2018


* Vladimir Davydov <vdavydov.dev at gmail.com> [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



More information about the Tarantool-patches mailing list