"alessio.soldano(a)jboss.com" wrote : Richard, as discussed on IRC, I don't see the problem you're talking about, please provide a testcase demonstrating your claims.
I finally have attachments working in embedded Netty HTTP server.
I provided the test case as I promissed, just uncomment the System.setProperty() again to reproduce the issue.
There's another how-to-fix that comes in my mind :) We could flush HTTP headers before writing HTTP body to the stream. This should be enough to make your fix (catching the exception and resending the message) working.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259046#4259046
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259046
Richard, as discussed on IRC, I don't see the problem you're talking about, please provide a testcase demonstrating your claims.
"richard.opalka(a)jboss.com" wrote : The fix is not acceptable :(
| We cannot simply catch exception and resend the message.
| This fix won't work for long streaming attachments :( It just works for really simple usecases.
| The correct fix will be to detect closed connections before writing to the stream.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258332#4258332
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258332
Steps to reproduce the issue:
svn checkout the following branches:
* spi/branches/ropalka
* common/branches/ropalka
* framework/branches/ropalka
* container/jboss50/branches/ropalka
* stack/native/branches/ropalka
Do 'mvn clean install' for:
* spi/branches/ropalka
* common/branches/ropalka
* framework/branches/ropalka
* container/jboss50/branches/ropalka
Comment out the following line in org.jboss.test.ws.jaxws.endpoint.jse.UsecasesTestCase.setUp():
System.setProperty(Constants.HTTP_KEEP_ALIVE, Boolean.FALSE.toString());
Run the test:
mvn -Ptestsuite,hudson,jboss510 -Dtest=**/jaxws/endpoint/jse/UsecasesTestCase test
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258138#4258138
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258138