Hi.
I am currently trying to make very simple script to benchmark
websocket response time.
http://github.com/makoto/wsbench/tree/master/go/wsbench/
The script first makes x number of connections, then write "hello
world". A seperate websocket server does echo back, then the script
records how long it took to get response from each connection.
The script itself is working. However, I start getting "unexpected
EOF" error when I try to make more than 29 connections.
http://gist.github.com/489070
Looks "websocket.Dial" starts sending back EOF when I open too many
connections.
Does anyone know if the function have limit on max number of
connections and whether I can change the default value (if any)?
Failing to make more than 30 connections seems a bit limiting.
A few other notes.
- I first tried on OSX, then tried on Ubuntu and getting same error
(so OS difference should not be the cause).
- For both OSX and Ubuntu, I was able to make more than 1000
connections using ruby version of similar benchmarking script, so
machine config is less likely to be the cause.
- I set GOMAXPROCS = 100 on ubuntu (I did not have to set this value
in OSX)
Thanks.
Makoto