You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Flash Networks (JIRA)" <ji...@apache.org> on 2006/11/30 19:23:22 UTC
[jira] Updated: (HTTPCORE-20) InputStreamEntity - post message body
is not being sent on retry
[ http://issues.apache.org/jira/browse/HTTPCORE-20?page=all ]
Flash Networks updated HTTPCORE-20:
-----------------------------------
Attachment: InputStreamEntity.java
> 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
> Attachments: InputStreamEntity.java
>
>
> 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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org