[Tarantool-patches] [PATCH 1/2] swim: add SO_BROADCAST option

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Fri Mar 19 23:18:52 MSK 2021



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.


More information about the Tarantool-patches mailing list