AnyEvent::HTTP handling invalid chunked response
Marc Lehmann
schmorp at schmorp.de
Sat May 30 23:04:35 CEST 2015
On Sat, May 30, 2015 at 09:31:06PM +0200, ambrus <ambrus at math.bme.hu> wrote:
> Thank you, I believe that's a good partial solution. That will make the
> HTTP request give an error if the server sends junk instead of the chunk
> size, or if the response header is unreasonably long.
I'd say thats what you want?
> But it will also make the request give an error if a very large chunk is
> read. If the HTTP server sends a very large chunk, I think AnyEvent::HTTP
> shouldn't die, but instead read it in reasonably sized units, and call the
> body callback after each unit. Is this possible?
Possibly, but unlikely to be implemented anytime soon, especially since
the on_body callback is optional, so it has to work without it as well.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the anyevent
mailing list