mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
fix timeout
This commit is contained in:
parent
42344a4c6e
commit
91e065529b
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ type Comm struct {
|
|||
func New(c net.Conn) Comm {
|
||||
c.SetReadDeadline(time.Now().Add(3 * time.Hour))
|
||||
c.SetDeadline(time.Now().Add(3 * time.Hour))
|
||||
c.SetWriteDeadline(time.Now().Add(5 * time.Second))
|
||||
c.SetWriteDeadline(time.Now().Add(3 * time.Hour))
|
||||
return Comm{c}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue