You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TLS connections always get unexpected eof when the server closes the connection #673
when using compio-tls with rustls, every server-initiated connection close results in the client receiving an unexpected eof while reading SSL error instead of a clean TLS shutdown. this happens on every close path (graceful server shutdown, protocol errors, authentication failures, etc.)
How to Reproduce
Set up a compio-tls server using rustls.
Connect with openssl s_client -connect <addr> -ign_eof.
Trigger any server-side connection close
The client reports:
error:0A000126:SSL routines::unexpected eof while reading:ssl/record/rec_layer_s3.c:696:
Expected: the connection closes cleanly with a TLS close_notify alert and no client-side error.
Suspicion
it looks like the TLS close_notify message is being buffered but never flushed before the underlying TCP connection is closed.
Activity
ortuman commentedon Feb 11, 2026
here is a minimal TLS server snippet to reproduce the bug:
Cargo.toml
then do:
output:
Berrysoft commentedon Feb 12, 2026
I can reproduce this issue.
Berrysoft commentedon Feb 13, 2026
compio-io 0.9.1 has been published.