Hello, I am using Jetty7 with continuation and I have sometimes an error on my test client side; see the following trace :
java.io.IOException: Premature EOF at sun.net.www.http.ChunkedInputStream.readAheadBlocking(ChunkedInputStream.java:538) at sun.net.www.http.ChunkedInputStream.readAhead(ChunkedInputStream.java:582) at sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:669) at java.io.FilterInputStream.read(FilterInputStream.java:116) at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2672) at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158) at java.io.InputStreamReader.read(InputStreamReader.java:167) I didn't configure a timeout on the continuation object itlself but I think that maxIdleTime is used in this case. From what I read from the documentation, maxIdleTime is used to handle connection expiration and read/write timeouts. In my case, I want a write timeout smaller than the default value of the sample connector (300000). So my questions are : * Is it possible to have a connection open 'forevever' with continuation ? If yes which parameters should I set for that ? * Is there a way to configure read/write and other timeouts independently ? Thanks. Guillaume.
_______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
