Skip to content

Detect when disconnected#269

Open
singpolyma wants to merge 1 commit intostrophe:masterfrom
singpolyma:detect-disconnect
Open

Detect when disconnected#269
singpolyma wants to merge 1 commit intostrophe:masterfrom
singpolyma:detect-disconnect

Conversation

@singpolyma
Copy link
Contributor

Sometimes when a connection is closed unceremoniously we cannot tell until we try to read. This allows us to set an error the rest of the library will understand so that the disconnect is properly detected.

Sometimes when a connection is closed unceremoniously we cannot tell
until we try to read. This allows us to set an error the rest of the
library will understand so that the disconnect is properly detected.
@sjaeckel
Copy link
Member

Nice! Could we have that for GnuTLS as well?

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.

2 participants