InputStreamEntity - post message body is not being sent on retry
----------------------------------------------------------------
Key: HTTPCORE-20
URL: http://issues.apache.org/jira/browse/HTTPCORE-20
Project: HttpComponents Core
Issue Type: Bug
Components: HttpCore
Affects Versions: 4.0-alpha2
Reporter: Flash Networks
If writeTo() was executed once, but the post message was not sent for some
reason (e.g. SocketTimeOut) - on retry the body of post message was not sent
because InputStream pointer was on the end and consumed=true
The attached class contains the fix - lines:
instream.reset(); //line 79
this.consumed = false; //line 80
in addition it contains inner class ResetableInputStream that extends the
InputStream class and implements the intstream.reset()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]