View | Details | Raw Unified | Return to bug 38332
Collapse All | Expand All

(-)jk/java/org/apache/jk/common/ChannelSocket.java (-2 / +8 lines)
Lines 82-87 Link Here
82
    private int startPort=8009;
82
    private int startPort=8009;
83
    private int maxPort=8019; // 0 for backward compat.
83
    private int maxPort=8019; // 0 for backward compat.
84
    private int port=startPort;
84
    private int port=startPort;
85
    private int backlog = 0;
85
    private InetAddress inet;
86
    private InetAddress inet;
86
    private int serverTimeout;
87
    private int serverTimeout;
87
    private boolean tcpNoDelay=true; // nodelay to true by default
88
    private boolean tcpNoDelay=true; // nodelay to true by default
Lines 267-273 Link Here
267
    }
268
    }
268
269
269
    public void setBacklog(int i) {
270
    public void setBacklog(int i) {
271
        this.backlog = i;
270
    }
272
    }
273
274
    public int getBacklog() {
275
        return backlog;
276
    }
271
    
277
    
272
    
278
    
273
    /* ==================== ==================== */
279
    /* ==================== ==================== */
Lines 367-375 Link Here
367
        for( int i=startPort; i<=maxPort; i++ ) {
373
        for( int i=startPort; i<=maxPort; i++ ) {
368
            try {
374
            try {
369
                if( inet == null ) {
375
                if( inet == null ) {
370
                    sSocket = new ServerSocket( i, 0 );
376
                    sSocket = new ServerSocket( i, backlog );
371
                } else {
377
                } else {
372
                    sSocket=new ServerSocket( i, 0, inet );
378
                    sSocket=new ServerSocket( i, backlog, inet );
373
                }
379
                }
374
                port=i;
380
                port=i;
375
                break;
381
                break;

Return to bug 38332