Adjusted maximum queue length for incoming connections from 5 to 50 when instantiating ServerSocket in ModbusTCPListener.
This was bothering us while unit testing one of our application which uses the j2mod-library.
The new maximum queue length (or "flood protection" as it is named in the source code) of 50 was actually chosen as the default maximum queue length because this is the default value mentioned in the (Oracle) Javadoc of java.net.ServerSocket.
Adjusted maximum queue length for incoming connections from 5 to 50 when instantiating ServerSocket in ModbusTCPListener.
This was bothering us while unit testing one of our application which uses the j2mod-library.
The new maximum queue length (or "flood protection" as it is named in the source code) of 50 was actually chosen as the default maximum queue length because this is the default value mentioned in the (Oracle) Javadoc of java.net.ServerSocket.