Hello.

I was wondering what exact value does Tomcat 9x use for NIO connector
socket timeouts?
I.e., when the following exception occurs:

org.apache.catalina.connector.ClientAbortException
java.net.SocketTimeoutException
at 
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353)
at 
org.apache.catalina.connector.OutputBuffer.flushByteBuffer(OutputBuffer.java:783)
at org.apache.catalina.connector.OutputBuffer.append(OutputBuffer.java:688)
at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:388)
at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:366)
at 
org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:96)

, it means that the underlying socket's .setSoTimeout() has been set
to a positive value.

Reading https://tomcat.apache.org/tomcat-9.0-doc/config/http.html, I see:

socket.soTimeout - "This is equivalent to standard attribute
connectionTimeout". Does it mean that setting this property is the
same as setting connectionTimeout, or that in the absence of
socket.soTimeout being explicitly set, the value of connectionTimeout
is used?

"connectionTimeout" says that it's only about waiting for a request
line after a TCP connection is accepted.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to