You've already forked v2ray-core
Increase reading timeout in favor of long connection
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user