Increase reading timeout in favor of long connection

This commit is contained in:
V2Ray
2015-10-07 15:24:34 +02:00
parent d2e69ed6f8
commit 3ba9ee73b9
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ func (server *SocksServer) AcceptConnections(listener net.Listener) {
func (server *SocksServer) HandleConnection(connection net.Conn) error {
defer connection.Close()
reader := v2net.NewTimeOutReader(4, connection)
reader := v2net.NewTimeOutReader(120, connection)
auth, auth4, err := protocol.ReadAuthentication(reader)
if err != nil && !errors.HasCode(err, 1000) {