goTcpProxy
A Tcp Proxy Server Written By Go
编译
cd $GOPATH;
git clone http://github.com/zheng-ji/goTcpProxy;
make
使用范例
Usage of ./goTcpProxy:
-c=10000: max connections in the queue wait for servers.
-dest="172.16.1.250:3306": where proxy server forward requests to.
-n=25: max active connection.
-src="127.0.0.1:8999": proxy server's host.
-ttl=20: timeout of read and write
./goTcpProxy -src="127.0.0.1:8999" -dest="172.16.1.250:3306"