Bugfix conn metatable method call (#3012)
Here `conn` is net.socket instance, so it should be called as one. Otherwise request is very likely to end up with crash and PANIC.
This commit is contained in:
parent
71a182caa7
commit
3d91785018
|
@ -89,7 +89,7 @@ do
|
|||
local buf = ""
|
||||
local method, url
|
||||
local ondisconnect = function(conn)
|
||||
conn.on("sent", nil)
|
||||
conn:on("sent", nil)
|
||||
collectgarbage("collect")
|
||||
end
|
||||
-- header parser
|
||||
|
|
Loading…
Reference in New Issue