https://issues.apache.org/bugzilla/show_bug.cgi?id=52055
Sudhan Moghe <sudhan.mo...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #7 from Sudhan Moghe <sudhan.mo...@gmail.com> 2012-04-20 14:01:42 UTC --- I am still facing this issue. My test cases are failing randomly when I run my application with <async-supported>true</async-supported>. Everything work fine when client is not using chunked encoding. Also, everything work fine when run with <async-supported>false</async-supported> I have debugged the problem and this bug report helped me in finding root cause. I found that ChunkedInputFilter is getting reused even when keepalive=false. And my test cases start failing after that point. So, we need to recycle it in that case. Issue was fixed by modifying the AbstractHttp11Processor file. Replaced lines #1538 to #1544 if (!keepAlive) { return SocketState.CLOSED; } else { getInputBuffer().nextRequest(); getOutputBuffer().nextRequest(); return SocketState.OPEN; } With getInputBuffer().nextRequest(); if (!keepAlive) { return SocketState.CLOSED; } else { getOutputBuffer().nextRequest(); return SocketState.OPEN; } I was testing against 7.0.26. Will test with trunk and submit patch if required. We can not recycle output buffer at this stage as it has not completed flushing data. Let me know if there is a better place to handle this. Will test it and then post a patch. I don't have a simple test case to reproduce the issue. Let me know what else I can do to help you fix this issue. Thanks, Sudhan -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org