Johan Eriksson - 2008-12-05

Hi.

I couldn't find an existing solution for this bug..

I applied the following patch to revision 1.13 of Ajp13Listener.java. Change adds deallocation of req/resp. resources when WinstoneException is thrown in Ajp13IncomingPacket constructor.

167a168,172
> if (req != null)
> this.objectPool.releaseRequestToPool(req);
> if (rsp != null)
> this.objectPool.releaseResponseToPool(rsp);
>
171d175
< deallocateRequestResponse(handler, req, rsp, null, null);
173a178,184
> } catch (WinstoneException err) {
> if (req != null)
> this.objectPool.releaseRequestToPool(req);
> if (rsp != null)
> this.objectPool.releaseResponseToPool(rsp);
>
> throw err;

This fix solved the problem I had in my setup, running mod_jk version 1.2.25 with following configuration:
.socket_keepalive=1
.socket_timeout=5
.connection_pool_timeout=600

Best regards
Johan Eriksson