TCP connections fail on second run (~60k connections, localhost, Linux)

Posted by ankush2324235@reddit | linux | View on Reddit | 1 comments

Heres the problem i am facing I am making a epoll based server on single thread server now testing this with tcpkali2 with this command:
```tcpkali2 -c 62000 -r 50000 -m "hekko" -T 120s 127.0.0.1:9090```

Now heres the problem :
My setup in terminal 1:
[ankush@cognitive tmp] ./server

Server running on 127.0.0.1:9090

in terminal 2:
tcpkali2 -c 62000 -r 50000 -m "hekko" -T 120s 127.0.0.1:9090

on first run it works well but in second run(tcpkali2) it shows connection error then my server crashes. Also I am closing all the client socket in the server side.

help me !!