go-syslog icon indicating copy to clipboard operation
go-syslog copied to clipboard

do not block accepting connections

Open munkyboy opened this issue 3 years ago • 1 comments

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.

munkyboy avatar Aug 24 '21 00:08 munkyboy

Please consider this PR, it will be appreciated by anyone looking to use the TLS functionality.

satta avatar Oct 25 '21 18:10 satta