Mantis - Resin
Viewing Issue Advanced Details
3346 minor sometimes 02-18-09 02:18 02-25-09 16:09
quartex  
ferg  
normal  
closed 3.1.6  
fixed  
none    
none 3.1.8  
0003346: Error InterruptedIOException
Sometimes on executing

    protected void forward(String szPage) throws Exception {
        RequestDispatcher req = request.getRequestDispatcher(szPage);
--> req.forward(request,response);
    }

resin report me

java.io.InterruptedIOException: timeout fd=67 errno=11

at com.caucho.vfs.JniSocketImpl.writeNative(Native Method)
    at com.caucho.vfs.JniSocketImpl.write(JniSocketImpl.java:288)
    at com.caucho.vfs.JniStream.write(JniStream.java:124)
    at com.caucho.vfs.WriteStream.flushBuffer(WriteStream.java:393)
    at com.caucho.server.connection.AbstractHttpResponse.finish(AbstractHttpResponse.java:2201)
    at com.caucho.server.connection.AbstractHttpResponse.close(AbstractHttpResponse.java:279)
    at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:286)
    at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:108)
    at it.dnshst.action.BaseAction.forward(BaseAction.java:122)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:114)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:91)
    at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
    at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:194)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:270)
    at com.caucho.server.port.TcpConnection.run(TcpConnection.java:678)
    at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)
    at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)
    at java.lang.Thread.run(Thread.java:619)

Any hints ?
Thanks a lot for all

Notes
(0003842)
ferg   
02-25-09 16:09   
This should be fixed in 3.1.8. errno=11 is EAGAIN, which says Resin should retry sending the data. Basically, the low level socket write is failing for some reason, although this case should be different from a client disconnect (which would also throw an exception, but it would be a different exception.)