8158980: Memory leak in HTTP2Connection.streams

Reviewed-by: chegar
This commit is contained in:
Sergey Kuksenko 2016-06-23 10:25:04 +01:00
parent f2b622bfb3
commit 8b5cbab0f5

View File

@ -617,6 +617,7 @@ class Stream extends ExchangeImpl {
void sendBodyImpl() throws IOException, InterruptedException {
if (requestContentLen == 0) {
// no body
requestSent();
return;
}
DataFrame df;
@ -667,7 +668,7 @@ class Stream extends ExchangeImpl {
responseFlowController); // TODO: filter headers
if (body == null) {
receiveData();
return processor.onResponseComplete();
body = processor.onResponseComplete();
} else
receiveDataAsync(processor);
responseReceived();