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

Cyrill Gorcunov gorcunov at gmail.com
Fri Mar 19 09:53:52 MSK 2021


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


More information about the Tarantool-patches mailing list