[Twisted-web] Re: Extremely slow POST request?

Magnus Hult magnus at spotify.com
Thu Jul 5 08:08:38 EDT 2007


On 7/5/07, Magnus Hult <magnus at spotify.com> wrote:
> On 7/5/07, Magnus Hult <magnus at spotify.com> wrote:
> > Hi,
> >
> > I have a simple resource that selects rows from a database and returns
> > the answer as some kind of XML:
> > [...]
> > A GET request to /bounces?id=...&id=... with a few ids finishes in no
> > time (like 0.04 seconds), but the exact same request as a POST (with
> > the parameters as urlencoded form data) takes over two seconds (!).
>
> When POSTDATA is 1024 bytes, the request finishes in notime, with 1025
> bytes, it takes two seconds... Still have no idea why, though.

Sorry people, it seems to be a problem with curl rather than with
twisted [http://osdir.com/ml/php.tcphp/2006-12/msg00007.html].



More information about the Twisted-web mailing list