This commit is contained in:
crusader 2017-08-25 11:07:55 +09:00
parent 3151443e44
commit b2dc806b5b

View File

@ -58,9 +58,11 @@ func (c *client) RequestCtx() *fasthttp.RequestCtx {
func (c *client) run() {
hasReadTimeout := c.o.ReadTimeout > 0
c.conn.SetReadLimit(c.o.MaxMessageSize)
// defer func() {
// c.o.OnDisconnected(c)
// }()
defer func() {
c.o.OnDisconnected(c)
}()
log.Printf("Path:%s", string(c.fastHTTPCtx.Path()))
for {
if hasReadTimeout {