Skip to content

Allow errors to be captured #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

Conversation

munkyboy
Copy link

Added Server.SetErrChannel which will be used to send errors

fixes #78

Added Server.SetErrChannel which will be used to send errors

fixes mcuadros#78
Buggy clients might never respond during the TLS handshake phase. This
change adds a config setting to set a read timeout before calling
handshake. I think the handshake involves multiple reads but this
setting should help with clients who never respond.
When using a plain TCP listener, goScanConnection creates some data
structures and moves on to scan which is wrapped in a goroutine.

When using a TLS listener, goScanConnection does not return until the
TLS handshake is complete. A lot can go wrong during this stage.

This change wraps goScanConnection in a goroutine to avoid blocking
accepting the next connection.
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.

Difficult to debug TLS handshake issues
1 participant