mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-17 22:57:10 +00:00
Increase reading timeout in favor of long connection
This commit is contained in:
1 parent
d2e69ed6f8
commit
3ba9ee73b9
2 files changed
+2
-2
No files matched your search
@@ -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