Commit 2ee09f4
committed
do not block accepting connections
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.1 parent 307370c commit 2ee09f4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
0 commit comments