mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 11:44:02 +03:00
Propagate keep alive settings from the config
This commit is contained in:
+11
-1
@@ -204,13 +204,23 @@ proxies = [
|
||||
# define a global timeout on establishing of network connections. idle
|
||||
# means a timeout on pumping data between sockset when nothing is
|
||||
# happening.
|
||||
#
|
||||
[network.timeout]
|
||||
tcp = "5s"
|
||||
http = "10s"
|
||||
idle = "5m"
|
||||
handshake = "10s"
|
||||
|
||||
# this defines a configuration for TCP keep alives. Default values are taken
|
||||
# from Golang default behavior.
|
||||
[network.keep-alive]
|
||||
disabled = false
|
||||
# idle means a time period after which we start sending TCP Keep Alive probes
|
||||
idle = "15s"
|
||||
# interval is a period between 2 consecutive probes
|
||||
interval = "15s"
|
||||
# if we miss that many probes, a connection will be considered as a dead one.
|
||||
count = 9
|
||||
|
||||
# mtg has to mimic real websites. It does not mean domain fronting, it also
|
||||
# means that traffic characteristics should be similar to real world traffic.
|
||||
# websites and applications behave differently, their traffic patterns are also
|
||||
|
||||
Reference in New Issue
Block a user