Closed yfractal closed 6 years ago
There are two issues here.
The first one has been resolved but you will need to update your gems (async-io specifically) and Ruby has also fixed this issue: https://bugs.ruby-lang.org/issues/14713
The second issue is you are running on Mac OS X. The default file handle limit is
> ulimit -n
256
Try increasing this limit, e.g. ulimit -n 1000
.
Hopefully the ruby issue will be back ported, but in any case, EPROTOTYPE is the same as EPIPE and is caused by the connection being terminated either by the remote end or the OS (hit file limit).
Thanks for your interest in the project, hopefully the advice about ulimit
helps.
I want the server sleep for a while before return the result.
Code as below:
Load testing results:
wrk -c 16 -d 5s http://127.0.0.1:9294
gotRequests/sec: 152.70
,wrk -c 32 -d 5s http://127.0.0.1:9294
gotRequests/sec: 305.01
,More connections more requests, looks good.
But I can't get too much connections, eg 256, the server will rise exception:
aysnc-http
's version is "0.16.0".