jsimmons / mongrel2-lua Goto Github PK
View Code? Open in Web Editor NEWLua api for the mongrel2 zeromq handler interface
Lua api for the mongrel2 zeromq handler interface
Hi,
I get this weird error, when I try to install using the guide fromhttp://tir.mongrel2.org/wiki/install.html
:
luarocks install mongrel2-lua-1.6.1.rockspec /tmp|16:01:04
Error: Directory v1.6 not found inside archive v1.6.1
For 1.6 we need to add a versioned rockspec rather than pulling out of trunk every time.
Title says it all. :-) Per HTTP spec the status code and status text is separated by just a space, not CRLF. Just remove the extra CRLF from HTTP_FORMAT and everything is ok.
When Mongrel2 drops release 1.6, the required version of ZeroMQ should be updated to 2.1.4+. Note that 2.1.6 should not be used due to a known bug (zeromq/libzmq#206). At the time of this writing 2.1.7 has not been tested with Mongrel2.
Hey josh, there's a 1 line fix for the m2 config stuff that is breaking configs with multiple hosts:
diff --git a/config.lua b/config.lua index d535b18..8e219f0 100644 --- a/config.lua +++ b/config.lua @@ -67,7 +67,7 @@ end local function db_select(db, name, predicate) local query - if data then + if predicate then local conditions = {} for k, v in pairs(predicate) do local condition = ('%s = %s'):format(k, sql_tostring(v))
Thanks.
Support for tnetstrings needs to be added.
Example should shows "is_disconnect()" function usage. The current version of example is incorrect. Try:
We have some documentation in the code, but nothing external and complete.
Especially worrisome for the config stuff.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.