Maximum number of TCP sockets allowed

I have been running a test with a TCP server accepting incoming connections.

I am using a Click ETH (Ethernet) module on a Portal.

It appears that the maximum number of sockets that can be created is 20. One listening socket and 19 sockets for active incoming connections. On the 20th connection there is an exception with the Accept() method.

I assume this is a TinyClr limit?

1 Like

Yes, but we are changing to 64 in next release.

1 Like

Thanks Mike. We are looking into increasing the limit safely as this is a RC and we have locked the charges. We will make it a bit better in this release, maybe 32, but then we will add more in the near future.