release buffer in client as well
Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
parent
b46b25b450
commit
a855744aeb
|
@ -230,6 +230,8 @@ public class HttpSenderOverHTTP extends HttpSender
|
||||||
}
|
}
|
||||||
case HEADER_OVERFLOW:
|
case HEADER_OVERFLOW:
|
||||||
{
|
{
|
||||||
|
httpClient.getByteBufferPool().release(headerBuffer);
|
||||||
|
headerBuffer = null;
|
||||||
throw new BadMessageException(INTERNAL_SERVER_ERROR_500, "Request header too large");
|
throw new BadMessageException(INTERNAL_SERVER_ERROR_500, "Request header too large");
|
||||||
}
|
}
|
||||||
case NEED_CHUNK:
|
case NEED_CHUNK:
|
||||||
|
|
Loading…
Reference in New Issue