Commit 56a86c26 authored by Edvinas's avatar Edvinas Committed by Marcel Stör
Browse files

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 bcb669a4a0a49e857186093eb79b6f27a3158ad7
parent 446c058f
...@@ -89,7 +89,7 @@ do ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment