reduce time of waiting for channel empty

pull/168/head v1.12.8
v2ray 2016-05-09 08:23:46 -07:00
parent ff210aa67f
commit 1bd893501c
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}