On 10/07/2010 10:54 AM, [email protected] wrote:
+ /**
+ * AJP packet size.
+ */
+ protected int packetSize = Constants.MAX_PACKET_SIZE;
+ public int getPacketSize() { return packetSize; }
+ public void setPacketSize(int packetSize) {
+ if(packetSize< Constants.MAX_PACKET_SIZE) {
+ this.packetSize = Constants.MAX_PACKET_SIZE;
+ } else {
+ this.packetSize = packetSize;
+ }
+ }
+
This would make AJP fixed to MAX_PACKET_SIZE
IMO this should be:
public void setPacketSize(int packetSize) {
if(packetSize < Constants.MIN_PACKET_SIZE) {
this.packetSize = Constants.MIN_PACKET_SIZE;
Also, 'if(foo)' -> 'if (foo)'
Regards
--
^TM
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]