mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-10-18 06:54:02 -04:00
allow customized timeout in socks protocol
This commit is contained in:
@@ -96,7 +96,7 @@ func (this *Server) Start() error {
|
||||
func (this *Server) handleConnection(connection internet.Connection) {
|
||||
defer connection.Close()
|
||||
|
||||
timedReader := v2net.NewTimeOutReader(120, connection)
|
||||
timedReader := v2net.NewTimeOutReader(this.config.Timeout, connection)
|
||||
reader := v2io.NewBufferedReader(timedReader)
|
||||
defer reader.Release()
|
||||
|
||||
|
Reference in New Issue
Block a user