Re: Assertion in clientProcessBody

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Tue, 08 Dec 2009 06:12:17 +0100

tis 2009-12-08 klockan 13:34 +1100 skrev Mark Nottingham:

> Any thoughts here? Should this really be >=, or should clientProcessBody never get a 0 size_left?

It's done when size_left == 0, and no further body processing handler
shoud be active on this request at that time. Any data on the connection
at this time is either surplus data (HTTP violation) or a pipelined
request waiting to be processed.

If you look a little further down (about one screen) in
clientProcessBody you'll also see that the body reader gets unregistered
when processing reaches 0.

But it would not be harmful to make clientProcessBody gracefully handle
size_left == 0 I guess.

A backtrace would be nice.

Regards
Henrik
Received on Tue Dec 08 2009 - 05:11:48 MST

This archive was generated by hypermail 2.2.0 : Wed Dec 16 2009 - 12:00:03 MST