From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) (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 8AF0D469719 for ; Thu, 19 Mar 2020 13:52:07 +0300 (MSK) Received: by mail-lf1-f67.google.com with SMTP id i1so502459lfo.1 for ; Thu, 19 Mar 2020 03:52:07 -0700 (PDT) Date: Thu, 19 Mar 2020 13:52:04 +0300 From: Cyrill Gorcunov Message-ID: <20200319105204.GW27301@uranus> References: <0f1501d5fdd8$f21e6860$d65b3920$@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0f1501d5fdd8$f21e6860$d65b3920$@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH v1.2] evio: workaround for wsl1 so_linger assertion List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Timur Safin Cc: tarantool-patches@dev.tarantool.org, Vladislav Shpilevoy , Cyrill Gorcunov On Thu, Mar 19, 2020 at 01:27:08PM +0300, Timur Safin wrote: > SO_LINGER makes no much sense for unix-sockets, and Microsoft WSL > is returning EINVAL if setsockopts called for SO_LINGER over unix > sockets: > > [004] 2020-03-11 18:42:29.592 [29182] main/102/app sio.c:169 !> SystemError setsockopt(SO_LINGER), called on fd 16, aka > [004] 2020-03-11 18:42:29.592 [29182] main/102/app F> can't initialize storage: setsockopt(SO_LINGER), called on fd 16, > [004] 2020-03-11 18:42:29.592 [29182] main/102/app F> can't initialize storage: setsockopt(SO_LINGER), called on fd 16, > > And it's sort of correct here, but the problem is Linux is simply > silently ignoring it, which passes tests. > > After much debates we decided to work-around this case via CMAKE > define. > > NB! In a future (April/May 2020), when WSL2 with full Linux kernel > would be released we should disable this check. Hardly. This will break backward compatibility. Or we will have to _require_ WSL2 to build tarantool.