diff --git a/clients/client.go b/clients/client.go index 365f652..314c993 100644 --- a/clients/client.go +++ b/clients/client.go @@ -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 {