Answers for "java socket read timeout exception"

0

java socket timeout

Socket socket = new Socket();						// 1000 milliseconds
socket.connect(new InetSocketAddress(ipAddress, port), 1000);
Posted by: Guest on December-31-2020
0

java.net.sockettimeoutexception read timed out

Locate the "server.xml" file in the "conf" folder beneath Tomcat's base directory (i.e. %CATALINA_HOME%/conf/server.xml).
Open the file in an editor and search for <Connector.
Locate the relevant connector that is timing out - this will typically be the HTTP connector, i.e. the one with protocol="HTTP/1.1".
If a connectionTimeout value is set on the connector, it may need to be increased - e.g. from 20000 milliseconds (= 20 seconds) to 120000 milliseconds (= 2 minutes). If no connectionTimeout property value is set on the connector, the default is 60 seconds - if this is insufficient, the property may need to be added.
Restart Tomcat
Posted by: Guest on May-22-2021

Code answers related to "java socket read timeout exception"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language