Skip to content

thrift_client_pool: close bad channel before creating a new one - #565

Open
jaricftw wants to merge 1 commit into
masterfrom
jz/close-channel
Open

thrift_client_pool: close bad channel before creating a new one#565
jaricftw wants to merge 1 commit into
masterfrom
jz/close-channel

Conversation

@jaricftw

@jaricftw jaricftw commented Dec 11, 2021

Copy link
Copy Markdown
Contributor

We see rocksplicator based applications leaking CLOSE_WAIT sockets, which is typically
due to applications not closing its own sockets properly after the connection has been closed
by the remote server.

To fix that, when creating a new client for a destination address, we ensure the existing thrift channel (socket)
is closed, before creating a new one.

Need to test this out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant