From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 1F7056EC56; Fri, 19 Mar 2021 23:18:56 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 1F7056EC56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1616185136; bh=eA5y7ExyUAqzcs0oRcWz6fz4MUD1Smdl/WSazosoTZI=; h=To:Cc:References:Date:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=H8kRExgovihrixjgB5UYgqbPtryoDnUuANDphcdPJDMCNJD70DtOmkPSSJdx+OimA trSfnJtuC06DFbgTNJqcXd09vQEng8lazgbiJK8KHmq+l0ucfTWtCfcldDzP3gn0BI eLqIK7/H/24HyzJ8coNVV8qxIQ+TGJlr3U5Bu7Lk= Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 83B076EC56 for ; Fri, 19 Mar 2021 23:18:54 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 83B076EC56 Received: by smtpng3.m.smailru.net with esmtpa (envelope-from ) id 1lNLa9-00059c-UT; Fri, 19 Mar 2021 23:18:54 +0300 To: Cyrill Gorcunov Cc: tarantool-patches@dev.tarantool.org References: Message-ID: <106323fa-06a1-8fd6-bffe-c978e99d8649@tarantool.org> Date: Fri, 19 Mar 2021 21:18:52 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD95D6E7CC48CB1F5F1C82687294EF6886BAE1FA542CE3F1C38182A05F5380850408891D701A80DB28F88258DFA47F053623662DFB0ADC9DC423E1066D853A666B1 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7544B1CCE26E01C74EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637FD60A286D0BA57028638F802B75D45FF914D58D5BE9E6BC131B5C99E7648C95C81A23F326053F82785D69652A26CB5DE9C0D7FBD69C8CD64A471835C12D1D9774AD6D5ED66289B5278DA827A17800CE74A95F4E53E8DCE969FA2833FD35BB23D2EF20D2F80756B5F868A13BD56FB6657A471835C12D1D977725E5C173C3A84C3CF36E64A7E3F8E58117882F4460429728AD0CFFFB425014E868A13BD56FB6657A7F4EDE966BC389F9E8FC8737B5C2249F7FD1A3A8AE6177F089D37D7C0E48F6CCF19DD082D7633A0E7DDDDC251EA7DABAAAE862A0553A39223F8577A6DFFEA7CFF04BF82BAB0A42543847C11F186F3C5E7DDDDC251EA7DABCC89B49CDF41148F6B16E133A9586FB82623479134186CDE6BA297DBC24807EABDAD6C7F3747799A X-C1DE0DAB: 0D63561A33F958A52B418FF56199B86DC03317488576C7A7D86104047E285742D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA75F04B387B5D7535DE410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34087368DEEB028F17B7FAC1E65320A70C8492C44A93E03D0D272E1B4BAF8E2B1E3AF9FF8326F519AC1D7E09C32AA3244CA0326C44A1D0F486B9C5A4BCE9EA10FFF165894D92D62706729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojyKyJYJ15DtIYkDDCPmExog== X-Mailru-Sender: 689FA8AB762F73936BC43F508A063822AD9FAF018CE81E0B83D2D9B0D70E6C783841015FED1DE5223CC9A89AB576DD93FB559BB5D741EB963CF37A108A312F5C27E8A8C3839CE0E267EA787935ED9F1B X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH 1/2] swim: add SO_BROADCAST option X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Vladislav Shpilevoy via Tarantool-patches Reply-To: Vladislav Shpilevoy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" On 19.03.2021 07:53, Cyrill Gorcunov wrote: > On Fri, Mar 19, 2021 at 12:18:46AM +0100, Vladislav Shpilevoy wrote: >> I force updated the patch on the branch. >> >> Could you please check if it works on your machine? For >> example, this test: >> >> uuid = require('uuid') >> swim = require('swim') >> >> s = swim.new({uuid = uuid(), uri = '127.0.0.1:3313'}) >> >> s:broadcast(3313) >> >> On Mac it used to print EADDRNOTAVAIL message. Probably >> would fail with something on Linux too, but I don't know. >> Might just work fine as well. > > Ack. Thanks! FWIW on linux this fails with > | tarantool> SystemError sendto(177), called on fd 10, aka 127.0.0.1:3313: Invalid argument What if you use a non-local address? For example, I have an IP from my router with 192.168... . Could you please try that one on your machine? If it will work, I will silence 'Invalid argument' on Linux for the same reason as EADDRNOTAVAIL on Mac.