hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ortwin Gl├╝ck <ortwin.glu...@nose.ch>
Subject Re: MultipartPostMethod takes long time to execute
Date Mon, 02 Jun 2003 07:13:37 GMT
Martin Chan wrote:
> Hi,
> I use MultipartPostMethod to do upload, but I found that it takes 3-4
> seconds to execute even for a very small file (<1KB).
> int status = httpClient.executeMethod(filePost);
> Does anyone have the same problem? How to improve the speed?
> I also found that the HttpClient fragment the post method to many
> packets, each with a few adte byte in content. Can we change it?
> Thanks,
> Martin Chan

This can have two reasons:

- When TCP_NODELAY is set and the data is delivered to slow, the data 
may fragment more than with TCP_NODELAY disabled.

- There can be a wait time involved due to 100-Continue handshake. Try 
and disable 100-Continue handshake.

View raw message