-
Bug
-
Resolution: Fixed
-
P2
-
9
-
b125
-
Not verified
Stream will be never deleted from HTTP2Connection.streams in the following conditions:
1. "content-len" of sending data is zero. e.g. "GET" request.
in that case "Stream.requestSent" will never be set to true.
2. "Stream.responseReceived" is never set to "true" when used following BodyPropcessors (asByteArray, asByteArrayConsumer, asFile, asFileDownload, asString).
Removing Stream from HTTP2Connection requires both fields set to true, so failing normal settting only one of this fields causes memory leak.
The issue is easily reproduces - simple loop with GET request via HTTP/2 leads to OutOfMemoryError.
1. "content-len" of sending data is zero. e.g. "GET" request.
in that case "Stream.requestSent" will never be set to true.
2. "Stream.responseReceived" is never set to "true" when used following BodyPropcessors (asByteArray, asByteArrayConsumer, asFile, asFileDownload, asString).
Removing Stream from HTTP2Connection requires both fields set to true, so failing normal settting only one of this fields causes memory leak.
The issue is easily reproduces - simple loop with GET request via HTTP/2 leads to OutOfMemoryError.