BrandonPotter / SimpleTCP

Straightforward .NET library to handle the repetitive tasks of spinning up and working with TCP sockets (client and server).
Apache License 2.0
363 stars 108 forks source link

Is their a limit on how many clients can connect to this server? cause some clients can't connect. #50

Open smetronic opened 5 years ago

smetronic commented 5 years ago

Hi, I have used this library in my IoT project in which the devices send the data to the server, the server application is running on windows server 2012. I can see all the devices which are connected to this server. Sometimes I have noticed when 20 devices are connected, other devices can't connect I have even tried to connect from my computer but it doesn't connect until I restart server application. This is becoming a big problem for me cause I am connecting more devices to the server and devices can't connect because of connection timeout. -Thanks

BrandonPotter commented 5 years ago

20 should not be anywhere near the number of concurrent connections a TcpListener can accept.

Do you have a threadpool restriction? Each client connected will cause a read thread to spin up on the server...

smetronic commented 5 years ago

No, I don't think I have implemented something like that but I'm using dapper ORM to insert the data received from the clients.