I have a URLConnection that connects to a Restlet URI which sends back 8MB of
data to the sender. However, often times I get the following message and I
lose a lot of data:
org.restlet.engine.http.connector.Connection writeMessage
WARNING: Exception while writing the message body.
java.net.SocketException: Broken pipe
Looking through Restlet source code, ServerConnection.java catches this
exception. Problem is, I need the receiving end to realize that this
happened and retry the GET but that doesn't seem to be possible. In the
source, it says it does this:
response.setStatus(Status.SERVER_ERROR_INTERNAL,
"An exception occured while writing the response");
But I checked the response code and it was always 200, regardless of the
socketexception.
Can someone please help?
Thanks
Kevin
--
View this message in context:
http://restlet-discuss.1400322.n2.nabble.com/java-net-SocketException-Broken-pipe-tp6306663p6306663.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2724389