Bug 36834 - Wrong message length in body chunks ?
Summary: Wrong message length in body chunks ?
Status: RESOLVED INVALID
Alias: None
Product: Tomcat Connectors
Classification: Unclassified
Component: Common (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-27 23:36 UTC by Vincent De Groote
Modified: 2008-10-05 03:09 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent De Groote 2005-09-27 23:36:41 UTC
jk_ajp13.h uses (line 43): AJP13_MAX_SEND_BODY_SZ = DEF_BUFFER_SZ - 6

but the start of the message is

2 header bytes
2 bytes for the message length
1 byte for the message type
2 bytes for the chunk length.

= a total of 7 bytes.  

The buffer usable space should be DEF_BUFFER_SZ - 7, if I'm not wrong
Comment 1 william.barker 2005-09-28 06:35:49 UTC
Request Body messages don't have a 'type' field in the AJP/1.3 protocol.