Open LYF1999 opened 1 year ago
https://github.com/hyperium/h2/blob/756384f4cdd62bce3af7aa53a156ba2cc557b5ec/src/proto/streams/counts.rs#L164-L168
There may still leave some bytes releated to the stream in https://github.com/hyperium/h2/blob/756384f4cdd62bce3af7aa53a156ba2cc557b5ec/src/proto/streams/recv.rs#L52 when Counts remove a closed Stream. This may cause mem leak, Should we remove bytes releated to the stream in remove function?
Counts
Stream
remove
I am gald to submit a PR to fix that, but we can not access Recv in Counts. if we do that, it will be a large change commit.
Recv
@seanmonstar can we have a look?
Sure!
https://github.com/hyperium/h2/blob/756384f4cdd62bce3af7aa53a156ba2cc557b5ec/src/proto/streams/counts.rs#L164-L168
There may still leave some bytes releated to the stream in https://github.com/hyperium/h2/blob/756384f4cdd62bce3af7aa53a156ba2cc557b5ec/src/proto/streams/recv.rs#L52 when
Counts
remove a closedStream
. This may cause mem leak, Should we remove bytes releated to the stream inremove
function?