Thanks!
I've got your sample up and running. I'm seeing ~3ms latency running the server on a Raspberry Pi over Wifi, which is fine. However, I'm seeing the server die a lot when I stress it...
When I tried to connect 1,000 clients simultaneously it died with a Unix error "too many open files". I guess this is an OS problem so I've tried to fix it by increasing the limit via sysctl.
Then when I try to repeatedly connect, send a message, receive the message and disconnect over and over again after 60k attempts the server died with "writer fd unexpectedly closed ".
And when I try to repeatedly connect and send a message and disconnect the server dies after 800 connections with the unix error "broken pipe".
I thought perhaps I could make all of these problems vanish by adding "~on_handler_error:`Ignore" but then I get a segmentation fault.
Is there an easy way to fix all of these problems? I assume/hope the seg fault is probably because I am on a RPi and other people are already making serious use of this library on x86/64? :-)
Cheers,
Jon.