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

Cyrill Gorcunov gorcunov at gmail.com
Fri Mar 19 23:29:51 MSK 2021


On Fri, Mar 19, 2021 at 09:18:52PM +0100, Vladislav Shpilevoy wrote:
> 
> 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.

 tarantool> s,err = swim.new({uuid = uuid(), uri = '192.168.88.249:3313'})
 tarantool> s
 ---
  - uuid: 053f4d3f-3f59-429e-8677-f2f97883e439
    uri: 192.168.88.249:3313
  ...

 tarantool> s:broadcast(3313)
 ---
  - true

	Cyrill


More information about the Tarantool-patches mailing list