Skip to content

hamishforbes/lua-resty-mocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

lua-resty-mocket

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()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages