阅读背景:

为什么我在1024个连接后拒绝连接?

来源:互联网 

I am testing on a local Linux server with both the server and client in the same server. After about 1024 connections, in my code, where I connect, I get connection refused. At first I thought it was the fd_set_max limit of 1024 for select and changed the server to do poll instead of select and I still don't get past this number. My ulimit -n is set to 2048 and I monitor the lsof on the server it reaches about 1033 (not sure if this is exact number) and fails. Any help is much appreciated.I am testing on a local Linux server with both




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: