Skip to content

Instantly share code, notes, and snippets.

View Neopallium's full-sized avatar

Robert Gabriel Jakabosky Neopallium

View GitHub Profile
@Neopallium
Neopallium / gist:878012
Created March 20, 2011 02:45
mongrel2 lua handler version of dumpenv.lua
local mongrel2 = require 'mongrel2'
local sender_id = '558c92aa-1644-4e24-a524-39baad0f8e78'
local sub_addr = 'tcp://127.0.0.1:8989'
local pub_addr = 'tcp://127.0.0.1:8988'
local io_threads = 1
-- Create new mongrel2 context
-- This is basically just a wrapper around the zeromq context so we can
-- properly terminate it, and set a number of threads to use.