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

(-)java/org/apache/catalina/connector/CoyoteAdapter.java (-3 / +6 lines)
Lines 349-357 Link Here
349
349
350
        Request request = (Request) req.getNote(ADAPTER_NOTES);
350
        Request request = (Request) req.getNote(ADAPTER_NOTES);
351
        Response response = (Response) res.getNote(ADAPTER_NOTES);
351
        Response response = (Response) res.getNote(ADAPTER_NOTES);
352
        boolean create = false;
352
353
353
        if (request == null) {
354
        if (request == null) {
354
355
            create = true;
355
            // Create objects
356
            // Create objects
356
            request = connector.createRequest();
357
            request = connector.createRequest();
357
            request.setCoyoteRequest(req);
358
            request.setCoyoteRequest(req);
Lines 374-381 Link Here
374
        connector.getService().getContainer().logAccess(
375
        connector.getService().getContainer().logAccess(
375
                request, response, time, true);
376
                request, response, time, true);
376
        
377
        
377
        request.recycle();
378
        if (create) {
378
        response.recycle();
379
            request.recycle();
380
            response.recycle();
381
        }
379
    }
382
    }
380
    
383
    
381
    
384
    

Return to bug 50651