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.
nwf edited in light of bcb669a4a0
This commit is contained in:
parent
446c058fa6
commit
56a86c2661
|
@ -89,7 +89,7 @@ do
|
||||||
local buf = ""
|
local buf = ""
|
||||||
local method, url
|
local method, url
|
||||||
local ondisconnect = function(connection)
|
local ondisconnect = function(connection)
|
||||||
connection.on("sent", nil)
|
connection:on("sent", nil)
|
||||||
collectgarbage("collect")
|
collectgarbage("collect")
|
||||||
end
|
end
|
||||||
-- header parser
|
-- header parser
|
||||||
|
|
Loading…
Reference in New Issue