mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-11 00:13:09 +00:00
8158980: Memory leak in HTTP2Connection.streams
Reviewed-by: chegar
This commit is contained in:
parent
f2b622bfb3
commit
8b5cbab0f5
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user