mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 14:54:03 +03:00
Put timeouts for 2 minutes stale connections
This commit is contained in:
+2
-2
@@ -32,8 +32,8 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
connTimeoutRead = 5 * time.Minute
|
connTimeoutRead = 2 * time.Minute
|
||||||
connTimeoutWrite = 5 * time.Minute
|
connTimeoutWrite = 2 * time.Minute
|
||||||
)
|
)
|
||||||
|
|
||||||
// Conn is a basic wrapper for net.Conn providing the most low-level
|
// Conn is a basic wrapper for net.Conn providing the most low-level
|
||||||
|
|||||||
Reference in New Issue
Block a user