Quellcode durchsuchen

Put timeouts for 2 minutes stale connections

tags/0.9
9seconds vor 7 Jahren
Ursprung
Commit
c74d4d65db
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2
    2
      wrappers/conn.go

+ 2
- 2
wrappers/conn.go Datei anzeigen

@@ -32,8 +32,8 @@ const (
32 32
 )
33 33
 
34 34
 const (
35
-	connTimeoutRead  = 5 * time.Minute
36
-	connTimeoutWrite = 5 * time.Minute
35
+	connTimeoutRead  = 2 * time.Minute
36
+	connTimeoutWrite = 2 * time.Minute
37 37
 )
38 38
 
39 39
 // Conn is a basic wrapper for net.Conn providing the most low-level

Laden…
Abbrechen
Speichern