> Hello Remy,
>
> Over the weekend I was thinking of a state machine (a simple one would be
> sufficient though). The client API will upload/send the header. After this
> he will go to upload the body, but is constantly checking (in a different
> thread?) if the response is already send. I the response is completely
send,
> the upload will be terminated and the response will be processed.
>
> A simple solution could be to check (when the IOException is arrived), if
> the response is completely received: in this case return the response,
else
> redo the action, for something else happened.
>
> What do you think?

Yes, this looks like it would work better.

I would suggest we release the current Commons HTTPClient as version 1.0
before making any important logic changes (since it's working ok for us 99%
of the time).
I'll post a vote on the commons list asking for a vote on that issue, maybe
tomorrow.

Remy

Reply via email to