The problem of breaking 64K in TCP connection

according to the data queried on the Internet, any element in the TCP quad belongs to a different connection.
then the assumption that the same client connects to the unreachable ports of different servers is true.
Open port 8081 on the server, and try to connect port 8081 with 60000 connections on the client side.
is currently available on some machines, allowing the client to have 120000 connections to the server.
but on some machines Cannot assign requested address is prompted when the second port is connected, so use curl to request the second port as well.
what is the reason for this phenomenon?
Linux kernel 4.9 is not a problem with time_wait

Apr.01,2022

is related to the client code. If you use jetty to create a client, you will get better when you change it to netty, but it does indicate an error in curl, which should be able to respond to requests normally. The specific reasons should also be checked carefully.

Menu