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

(-)java/org/apache/coyote/http11/Http11AprProtocol.java (+3 lines)
Lines 245-250 Link Here
245
    public int getSendfileSize() { return endpoint.getSendfileSize(); }
245
    public int getSendfileSize() { return endpoint.getSendfileSize(); }
246
    public void setSendfileSize(int sendfileSize) { endpoint.setSendfileSize(sendfileSize); }
246
    public void setSendfileSize(int sendfileSize) { endpoint.setSendfileSize(sendfileSize); }
247
    public boolean getDeferAccept() { return endpoint.getDeferAccept(); }
248
    public void setDeferAccept(boolean deferAccept) { endpoint.setDeferAccept(deferAccept); }
249
247
    protected int socketBuffer = 9000;
250
    protected int socketBuffer = 9000;
248
    public int getSocketBuffer() { return socketBuffer; }
251
    public int getSocketBuffer() { return socketBuffer; }
249
    public void setSocketBuffer(int socketBuffer) { this.socketBuffer = socketBuffer; }
252
    public void setSocketBuffer(int socketBuffer) { this.socketBuffer = socketBuffer; }
(-)java/org/apache/tomcat/util/net/AprEndpoint.java (-5 / +9 lines)
Lines 156-170 Link Here
156
    protected long sslContext = 0;
156
    protected long sslContext = 0;
157
    // ------------------------------------------------------------- Properties
158
159
157
    /**
160
    /**
158
     * Defer accept.
161
     * Defer accept.
159
     */
162
     */
160
    protected boolean deferAccept = true;
163
    protected boolean deferAccept = true;
161
164
    public void setDeferAccept(boolean deferAccept) { this.deferAccept = deferAccept; }
165
    public boolean getDeferAccept() { return deferAccept; }
162
    // ------------------------------------------------------------- Properties
163
164
    /**
166
    /**
165
     * External Executor based thread pool.
167
     * External Executor based thread pool.
166
     */
168
     */
Lines 659-666 Link Here
659
        // Delay accepting of new connections until data is available
661
        // Delay accepting of new connections until data is available
660
        // Only Linux kernels 2.4 + have that implemented
662
        // Only Linux kernels 2.4 + have that implemented
661
        // on other platforms this call is noop and will return APR_ENOTIMPL.
663
        // on other platforms this call is noop and will return APR_ENOTIMPL.
662
        if (Socket.optSet(serverSock, Socket.APR_TCP_DEFER_ACCEPT, 1) == Status.APR_ENOTIMPL) {
664
        if (deferAccept) {
663
            deferAccept = false;
665
            if (Socket.optSet(serverSock, Socket.APR_TCP_DEFER_ACCEPT, 1) == Status.APR_ENOTIMPL) {
666
                deferAccept = false;
667
            }
664
        }
668
        }
665
        // Initialize SSL if needed
669
        // Initialize SSL if needed

Return to bug 46077