Skip to content

Close connection on heartbeat OperationTimedOutException, not just SocketException#631

Open
fakefeik wants to merge 1 commit into
datastax:masterfrom
fakefeik:fix/heartbeat-timeout-close-connection
Open

Close connection on heartbeat OperationTimedOutException, not just SocketException#631
fakefeik wants to merge 1 commit into
datastax:masterfrom
fakefeik:fix/heartbeat-timeout-close-connection

Conversation

@fakefeik

Copy link
Copy Markdown

A heartbeat (OptionsRequest) that times out because the peer stopped responding while the TCP connection stays established was previously ignored, since IdleTimeoutHandler only closed the connection for SocketException. This left connections to a dead-but-still-accepting host open indefinitely once application traffic stopped flowing on them, well past the point the host was already marked DOWN via other connections.

Closes #630

…cketException

A heartbeat (OptionsRequest) that times out because the peer stopped
responding while the TCP connection stays established was previously
ignored, since IdleTimeoutHandler only closed the connection for
SocketException. This left connections to a dead-but-still-accepting
host open indefinitely once application traffic stopped flowing on
them, well past the point the host was already marked DOWN via other
connections.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@joao-r-reis

Copy link
Copy Markdown
Collaborator

Hi, thanks for the PR! Posting this here just to acknowledge that I'm aware of it but I don't have the cycles to look at it right now and there's no plans for the next release yet.

Also, we're unable to accept external contributions right now due to our old CLA process going away so we're still trying to get that resolved too.

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.

Close the connection on heartbeat timeouts in addition to SocketExceptions

2 participants