mcuadros / go-syslog

Syslog server library for go.
http://godoc.org/gopkg.in/mcuadros/go-syslog.v2
MIT License
523 stars 143 forks source link

Allow setting timeout during TLS Handshake #80

Open munkyboy opened 3 years ago

munkyboy commented 3 years ago

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.

satta commented 3 years ago

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