We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31f1cac commit 998a53cCopy full SHA for 998a53c
server.go
@@ -7,7 +7,6 @@ import (
7
"io"
8
"log/slog"
9
"net"
10
- "strings"
11
"sync"
12
"time"
13
@@ -176,17 +175,6 @@ func handleConnection(conn net.Conn) error {
176
175
}
177
178
179
-func isConnectionReset(err error) bool {
180
- if err == nil {
181
- return false
182
- }
183
- // Check for common connection reset patterns
184
- errStr := err.Error()
185
- return strings.Contains(errStr, "connection reset by peer") ||
186
- strings.Contains(errStr, "broken pipe") ||
187
- strings.Contains(errStr, "write: broken pipe")
188
-}
189
-
190
func (s *Server) serveUDP(ctx context.Context) error {
191
lc := net.ListenConfig{}
192
0 commit comments