fix: sync/atomic bug, fix #1804 (#1805)

Co-authored-by: tanghuafa <tanghuafa@bytedance.com>
This commit is contained in:
Tank
2020-05-12 22:09:16 +08:00
committed by GitHub
parent bd6435c982
commit 228e225f84
3 changed files with 18 additions and 17 deletions

View File

@@ -143,6 +143,7 @@ func SendUdpMsg(addr string, msg string) (res string, err error) {
return
}
conn.SetReadDeadline(time.Now().Add(10 * time.Second))
buf := make([]byte, 2048)
n, errRet := conn.Read(buf)
if errRet != nil {