Explorar o código

reduce time of waiting for channel empty

v2ray %!s(int64=9) %!d(string=hai) anos
pai
achega
1bd893501c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      transport/ray/direct.go

+ 1 - 1
transport/ray/direct.go

@@ -97,7 +97,7 @@ func (this *Stream) TryWriteOnce(data *alloc.Buffer) error {
 	select {
 	case this.buffer <- data:
 		return nil
-	case <-time.After(16 * time.Second):
+	case <-time.After(2 * time.Second):
 		return ErrorIOTimeout
 	}
 }