Skip to content

Ignore TLS error when closing listener from the notifier#1216

Merged
brandur merged 1 commit intomasterfrom
brandur-ignore-listener-close
Apr 18, 2026
Merged

Ignore TLS error when closing listener from the notifier#1216
brandur merged 1 commit intomasterfrom
brandur-ignore-listener-close

Conversation

@brandur
Copy link
Copy Markdown
Contributor

@brandur brandur commented Apr 17, 2026

Here, address a request coming from #256 in which it's fairly common to
see an like this one going to the error logs:

tls: failed to send closeNotify alert (but connection was closed anyway): write tcp 10.0.5.131:40192->10.0.7.96:5432: i/o timeout

If you read the error message carefully, it indicates that this really
isn't a problem. The connection is closed already, and the TLS package
just wasn't able to close it as cleanly as it wanted to.

Here, modify the site that calls listener close in the notifier so that
it ignores these types of errors, thereby cleaning up peoples' error
logs somewhat.

Fixes #256.

Here, address a request coming from #256 in which it's fairly common to
see an like this one going to the error logs:

> `tls: failed to send closeNotify alert (but connection was closed anyway): write tcp 10.0.5.131:40192->10.0.7.96:5432: i/o timeout`

If you read the error message carefully, it indicates that this really
isn't a problem. The connection is closed already, and the TLS package
just wasn't able to close it as cleanly as it wanted to.

Here, modify the site that calls listener close in the notifier so that
it ignores these types of errors, thereby cleaning up peoples' error
logs somewhat.

Fixes #256.
Copy link
Copy Markdown
Contributor

@bgentry bgentry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and definitely worth trying, thanks!

@brandur
Copy link
Copy Markdown
Contributor Author

brandur commented Apr 18, 2026

thx!

@brandur brandur merged commit b8165b8 into master Apr 18, 2026
15 checks passed
@brandur brandur deleted the brandur-ignore-listener-close branch April 18, 2026 20:11
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.

Intermittent listener close issue popping up again

2 participants