curl-and-python
Re: aborting a transaction
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 27 Sep 2009 23:36:17 +0200 (CEST)
Date: Sun, 27 Sep 2009 23:36:17 +0200 (CEST)
On Thu, 24 Sep 2009, Daniel Stenberg wrote:
> I suggest we just make libcurl stop at 100K and then consider the rest not a
> HTTP header anymore - or perhaps consider it an illegal/bad stream and bail
> out. Any other opinions or perhaps nods?
I've just committed a change that will cause libcurl to bail out entirely if a
received HTTP header is longer than 100K. It will return CURLE_OUT_OF_MEMORY
as it is kind of a memory-related problem and I couldn't really think of any
other existing error code that would suit better.
-- / daniel.haxx.se _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-pythonReceived on 2009-09-27