ing
This commit is contained in:
parent
3151443e44
commit
b2dc806b5b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user