Simple mocking library for ngx_lua's tcp and udp sockets.
Allows easy performance testing of socket logic without actually making thousands of connections
Mocket = require("resty.mocket")
local sock = Mocket:new("tcp")
timer:start()
for i=1,10000 do
my_module:do_socket_logic(sock)
end
timer:stop()