mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-31 14:36:50 -05:00
reduce time of waiting for channel empty
This commit is contained in:
parent
ff210aa67f
commit
1bd893501c
@ -97,7 +97,7 @@ func (this *Stream) TryWriteOnce(data *alloc.Buffer) error {
|
|||||||
select {
|
select {
|
||||||
case this.buffer <- data:
|
case this.buffer <- data:
|
||||||
return nil
|
return nil
|
||||||
case <-time.After(16 * time.Second):
|
case <-time.After(2 * time.Second):
|
||||||
return ErrorIOTimeout
|
return ErrorIOTimeout
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user