mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
Fix #337
This commit is contained in:
parent
3ddacbb9c9
commit
4e224d64c6
@ -315,7 +315,7 @@ func (v *Connection) Write(b []byte) (int, error) {
|
||||
}
|
||||
|
||||
duration := time.Duration(time.Minute)
|
||||
if !v.rd.IsZero() {
|
||||
if !v.wd.IsZero() {
|
||||
duration = v.wd.Sub(time.Now())
|
||||
if duration < 0 {
|
||||
return totalWritten, ErrIOTimeout
|
||||
|
Loading…
Reference in New Issue
Block a user