Repository navigation
Fix OkHTTP client transport leak - #11054
Conversation
8c1b9e0 to
41f2557
Compare
ejona86
left a comment
There was a problem hiding this comment.
Wow, this looks like a pretty old bug. Seems it would mostly break idleTimeout() and only if MAX_CONCURRENT_STREAMS was reached. The memory leak could become noticeable if connections lived long enough and the connection remained limited by MAX_CONCURRENT_STREAMS.
What broke for you to notice this?
We have a grpc server with MAX_CONCURRENT_STREAM set to 100 and a single client with 512 threads doing parallel requests to the server using the same okhttp channel. And the client was going out of memory. |
…t transport even if a pending stream was started.
41f2557 to
19f970f
Compare
Fixes #11053: make sure to remove finished stream in okhttp client transport even if a pending stream was started.