hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Flash Networks (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HTTPCORE-20) InputStreamEntity - post message body is not being sent on retry
Date Thu, 30 Nov 2006 18:23:22 GMT
     [ 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


Mime
View raw message