hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Delaying headers when Expect-Continue not set
Date Thu, 24 Feb 2005 09:03:35 GMT
Hi Mohammad,

This issue has been addressed just recently post 3.0rc1:

http://issues.apache.org/bugzilla/show_bug.cgi?id=33468

Cheers,

Oleg

On Wed, 2005-02-23 at 11:31 -0500, Rezaei, Mohammad A. wrote:
> In HttpMethodBase, the http headers are flushed before the content is
> written. Is there any reason for this other than Expect-Continue handling?
> The reason I ask is that for small POST requests, this generates twice as
> many network packets as necessary. If this is just for Expect-Continue
> handling, would it be possible to move the flush inside the handling code?
> That is, 
> 
>         // make sure the status line and headers have been sent
>         conn.flushRequestOutputStream();
> 
> Moves into the if statement:
> 
>         if ((expectvalue != null) 
>          && (expectvalue.compareToIgnoreCase("100-continue") == 0)) {
>             if (ver.greaterEquals(HttpVersion.HTTP_1_1)) {
> 
> Thanks
> Moh
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Mime
View raw message