correct time

This commit is contained in:
Fangliding
2026-05-19 15:46:12 +08:00
parent 47cbf7fa3c
commit 154acee609
2 changed files with 17 additions and 12 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ func (w *PipeConnWrapper) Read(b []byte) (n int, err error) {
n, err = w.R.Read(b)
if err != nil {
// uplinkonly
w.T.SetTimeout(3 * time.Second)
w.T.SetTimeout(2 * time.Second)
}
return
}
@@ -75,7 +75,7 @@ func (w *PipeConnWrapper) Write(p []byte) (n int, err error) {
n = 0
buf.ReleaseMulti(mb)
// downlinkonly
w.T.SetTimeout(3 * time.Second)
w.T.SetTimeout(5 * time.Second)
}
return
}