Commit be3d7889 authored by AlexStocks's avatar AlexStocks

delete time.Sleep(10e9)

parent 50759d83
......@@ -20,7 +20,6 @@ import (
)
import (
"github.com/AlexStocks/goext/log"
log "github.com/AlexStocks/log4go"
"github.com/golang/snappy"
"github.com/gorilla/websocket"
......
......@@ -696,7 +696,7 @@ func (s *session) handleUDPPackage() error {
}
bufLen, addr, err = conn.read(buf)
gxlog.CInfo("conn.read() = bufLen:%d, addr:%#v, err:%#v", bufLen, pkgLen, err)
gxlog.CInfo("conn.read() = bufLen:%d, addr:%#v, err:%s", bufLen, pkgLen, err)
if nerr, ok = err.(net.Error); ok && nerr.Timeout() {
continue
}
......@@ -710,7 +710,6 @@ func (s *session) handleUDPPackage() error {
pkg, pkgLen, err = s.reader.Read(s, buf[:bufLen])
gxlog.CInfo("s.reader.Read() = pkg:%#v, pkgLen:%d, err:%#v", pkg, pkgLen, err)
time.Sleep(10e9)
if err == nil && s.maxMsgLen > 0 && bufLen > int(s.maxMsgLen) {
err = ErrMsgTooLong
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment