release buffer in client as well

Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
Greg Wilkins 2020-02-20 10:25:57 +01:00
parent b46b25b450
commit a855744aeb
1 changed files with 2 additions and 0 deletions

View File

@ -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: