[Tarantool-patches] [PATCH V2] socket: fix error while closing socket.tcp_server
Alexander Turenko
alexander.turenko at tarantool.org
Fri May 29 15:41:31 MSK 2020
On Tue, May 19, 2020 at 11:05:25PM +0300, Leonid Vasiliev wrote:
> The tcp server starts in a separate fiber.
> When server's socket is closed from another fiber,
> an exception will be thrown in server's loop from
> check_socket function.
> A "socket is close" check has been added at server's
> fiber and now server's fiber terminates correctly.
>
> Fixes: #4087
> ---
> https://github.com/tarantool/tarantool/issues/4087
> https://github.com/tarantool/tarantool/tree/lvasiliev/gh-4087-fix-socket-stuff
>
> @Changelog fix error while closing socket.tcp_server socket(gh-4087)
>
> For a "socket is close" check, fd < 0 is used instead of an additional flag.
LGTM.
More information about the Tarantool-patches
mailing list