This commit is contained in:
lanyi
2021-07-20 10:20:41 +08:00
parent 1499c7253a
commit 71024954e2
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -262,6 +262,7 @@ func Readfile(filename string) (string, error) {
func readreply(conn net.Conn) (result string, err error) {
buf := make([]byte, 4096)
for {
conn.SetReadDeadline(time.Now().Add(10 * time.Second))
count, err := conn.Read(buf)
if err != nil {
break