benchmark failed when using more threads
Created by: tyrchen
When I use 100 connections with 8 threads:
➜ node-http-proxy git:(master) ✗ wrk -c 100 -d1m -t 8 http://127.0.0.1:8000
The proxy server will quit after a while:
➜ node-http-proxy git:(master) ✗ node benchmark/scripts/proxy.js /Users/tchen/projects/startup/study/node-http-proxy/lib/http-proxy/index.js:119 throw err; ^ Error: read ECONNRESET at exports._errnoException (util.js:746:11) at TCP.onread (net.js:559:26)
Probably the proxy.js shall silently drop the errors to let the benchmark finish.