Hi

I am getting the following exception:

2016-07-18 07:46:52.667 /http/httpmodule WARN null - error during upload
| java.net.SocketTimeoutException
|       at 
org.apache.tomcat.util.net.NioBlockingSelector.read(NioBlockingSelector.java:202)
|       at 
org.apache.tomcat.util.net.NioSelectorPool.read(NioSelectorPool.java:250)
|       at 
org.apache.tomcat.util.net.NioSelectorPool.read(NioSelectorPool.java:231)
|       at 
org.apache.coyote.http11.InternalNioInputBuffer.fill(InternalNioInputBuffer.java:133)
|       at 
org.apache.coyote.http11.InternalNioInputBuffer$SocketInputBuffer.doRead(InternalNioInputBuffer.java:177)
|       at 
org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:110)
|       at 
org.apache.coyote.http11.AbstractInputBuffer.doRead(AbstractInputBuffer.java:416)
|       at org.apache.coyote.Request.doRead(Request.java:469)
|       at 
org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:342)
|       at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:395)
|       at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:367)
|       at 
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:156)

This happens when I try to read about 100MB from the client using (repeatedly) 
request..getInputStream().read(...).
It happens 42 Seconds after the upload was started.

I did not set any timeout on the connector and the default is supposed to be 60 
seconds.


So I have the following questions:

1. Does it make any sense to catch this exception and call read again?
2. Can I configure the read timeout on a per connection basis?
3. Why is the exception thrown after just 42 seconds?


Regards,
  Steffen

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to