1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00
This commit is contained in:
Darien Raymond 2016-12-24 22:04:09 +01:00
parent 3ddacbb9c9
commit 4e224d64c6
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

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