hmgle / graftcp

A flexible tool for redirecting a given program's TCP traffic to SOCKS5 or HTTP proxy.
GNU General Public License v3.0
2.07k stars 174 forks source link

I used wrk to replace curl app,which can not invoke line, _, err := r.ReadLine() #22

Closed 578141611 closed 4 years ago

578141611 commented 4 years ago

fail

./graftcp -p 2233 wrk -t2 -c10 -d10s http://ww.baidu.com _, err := r.ReadLine() can not invoke

ok

wrk -t2 -c10 -d10s http://ww.baidu.com

ok

./graftcp -p 2233 curl http://ww.baidu.com _, err := r.ReadLine() can invoke

578141611 commented 4 years ago

wrk in github: https://github.com/wg/wrk

hmgle commented 4 years ago

It is not reproduced on my machine. In order to check if your proxy is stable, you can use proxychains-ng to redirect the connection of wrk, as wrk is dynamically linked, and see if this problem will occur.

BTW, tracking system calls may cause performance loss. Using graftcp for benchmarking high concurrency will greatly reduce the result.