mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-02 00:11:56 +03:00
Change algorithm of TCP relaying
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
package relay
|
||||
|
||||
import "time"
|
||||
|
||||
const (
|
||||
ConnectionTimeToLiveMin = 2 * time.Minute
|
||||
ConnectionTimeToLiveMax = 10 * time.Minute
|
||||
TimeoutMin = 20 * time.Second
|
||||
TimeoutMax = time.Minute
|
||||
)
|
||||
|
||||
type Logger interface {
|
||||
Printf(msg string, args ...interface{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user