Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338961

Summary: [PATCH] Transfer errors when using AJP
Product: [RT] Jetty Reporter: Przemek Bruski <sesuvqrbasuvgg>
Component: serverAssignee: Greg Wilkins <gregw>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: jetty-inbox
Version: unspecified   
Target Milestone: 7.2.x   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch
none
patch without debug
none
patch stripped down to include just the needed stuff none

Description Przemek Bruski CLA 2011-03-04 12:31:51 EST
Build Identifier: 

When using Jetty jetty-7.2.1.v20101111 with AJP, I get the following error:
2011-03-04 17:46:53,005 ERROR [qtp22172629-13] [FiveOhOh] 500 Exception was thrown.
java.io.IOException: FULL
	at org.eclipse.jetty.ajp.Ajp13Parser.fill(Ajp13Parser.java:199)
	at org.eclipse.jetty.ajp.Ajp13Parser.parseNext(Ajp13Parser.java:567)
	at org.eclipse.jetty.ajp.Ajp13Parser$Input.blockForContent(Ajp13Parser.java:856)
	at org.eclipse.jetty.ajp.Ajp13Parser$Input.read(Ajp13Parser.java:830)

I think the reason for this problem is that the default buffer size set by Ajp13SocketConnector is set to Ajp13Packet.MAX_DATA_SIZE and Ajp13Parser needs  Ajp13Packet.MAX_PACKET_SIZE to work. The attached patch fixed the problem for me.

Reproducible: Always

Steps to Reproduce:
Use POST to send something large to the server.
Comment 1 Przemek Bruski CLA 2011-03-04 12:33:40 EST
Created attachment 190416 [details]
patch
Comment 2 Przemek Bruski CLA 2011-03-04 12:35:44 EST
Created attachment 190417 [details]
patch without debug
Comment 3 Przemek Bruski CLA 2011-03-04 12:38:28 EST
Created attachment 190418 [details]
patch stripped down to include just the needed stuff
Comment 4 Greg Wilkins CLA 2011-03-06 23:33:09 EST
I think the actual fix is to set the default buffer size correctly to the packet size and not the data size.  testing now
Comment 5 Greg Wilkins CLA 2011-03-07 00:07:36 EST
fixed for 7.3.1