Open switchtan opened 4 years ago
i fix a litte stuff in server.go line 60,
```
SecureCopy(dstServer, client, auth.Encrypt) readTimeout := 60 5 time.Second err = dstServer.SetReadDeadline(time.Now().Add(readTimeout)) if err != nil { log.Println("setReadDeadline failed:", err) }
i fix a litte stuff in server.go line 60,
SecureCopy(dstServer, client, auth.Encrypt) readTimeout := 60 * 5 * time.Second err = dstServer.SetReadDeadline(time.Now().Add(readTimeout)) if err != nil { log.Println("setReadDeadline failed:", err) }
Yes, I am not set timeout to server.
maybe in server.go line 41, dstServer, err := net.DialTCP("tcp", nil, request.RAWADDR) the same request.RAWADDR,but still build a new connect.
but i don't know how to fix it