~ubuntu-branches/ubuntu/lucid/tomcat6/lucid-security

« back to all changes in this revision

Viewing changes to java/org/apache/coyote/ajp/AjpProtocol.java

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-06-09 12:35:19 UTC
  • mfrom: (1.1.2 upstream)
  • mto: (2.2.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: james.westby@ubuntu.com-20090609123519-gqoh3efl0kfj38kg
Tags: upstream-6.0.20
ImportĀ upstreamĀ versionĀ 6.0.20

Show diffs side-by-side

added added

removed removed

Lines of Context:
290
290
     */
291
291
    protected int packetSize = Constants.MAX_PACKET_SIZE;
292
292
    public int getPacketSize() { return packetSize; }
293
 
    public void setPacketSize(int packetSize) { this.packetSize = packetSize; }
 
293
    public void setPacketSize(int packetSize) {
 
294
        if(packetSize < Constants.MAX_PACKET_SIZE) {
 
295
            this.packetSize = Constants.MAX_PACKET_SIZE;
 
296
        } else {
 
297
            this.packetSize = packetSize;
 
298
        }
 
299
    }
294
300
 
295
301
    
296
302
    /**