Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem when action request doesn't have Content-Length header
01-07-2013, 09:14 PM
Post: #5
RE: Problem when action request doesn't have Content-Length header
(01-07-2013 08:24 PM)simoncn Wrote:  I can see a simple improvement to my patch that would eliminate dynamic allocation for the normal case where Content-Length is specified.
....
As you say, it is harder to see how to eliminate dynamic allocation for the other two cases (which should not occur with most control points).

I'm going to try writing a dechunker that operates on the buffer already used by the server tomorrow. If that doesn't work, I'll go with the sort of approach you suggest.

As an aside, was the problem you saw with a CP using a chunked request? An HTTP 1.0 request that closed the connection to signify the request end doesn't make immediate sense - it would be unable to receive any response to its request (the invoked action).
Find all posts by this user


Messages In This Thread
RE: Problem when action request doesn't have Content-Length header - simonc - 01-07-2013 09:14 PM

Forum Jump: