miko

Results 13 comments of miko

Here is a patch for scite 3.2.1: ``` diff --git a/lib/luainspect/scite.lua b/lib/luainspect/scite.lua index b112cf2..6e330ab 100644 --- a/lib/luainspect/scite.lua +++ b/lib/luainspect/scite.lua @@ -397,7 +397,7 @@ local function update_ast() local errlinenum0 = errfpos0...

Quoting original proposal: ``` I'd start at the top. I think the API should look something like this: local req = httpd:recv() where req is a RACK/PSGI [1] like environment...

Yes, even if you give it as a string, it is internally transformed to integer, so this integer can be ORed with (the integer value of) ZMQ_DONTWAIT.

When receiving the multipart message, the original design is to do this in a loop: ``` more=true while more do msg=socket:receive() more=socket:getsockopt('RCVMORE') end ``` The nice thing is that if...

Seems I have the same issue: $ ab -k -r -n 10000 -c 500 http://127.0.0.1:8080/ This is ApacheBench, Version 2.3 Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to...

Much better now: I get all the request data. But when it runs succesfully; I get at the exit: lua: src/unix/stream.c:934: uv__read: Assertion `!uv__io_active(&stream->read_watcher)' failed. But most of the time...

Repeated the test with luajit instead of lua (and modified print line), got: got zero, EOF? GET / HTTP/1.0 Connection: Keep-Alive Host: 127.0.0.1:8080 User-Agent: ApacheBench/2.3 Accept: _/_ got zero, EOF?...

The buffer size issue is now resolved: when using ab everything works great! I do still get uv__read assertion, and I do use client:close(), as it is your httpd-k.lua example....

dvv: I have put my version of httpd-k.lua with timers in https://gist.github.com/3857202#comments

Thanks, that fixed it for me! And yes, http daemon built into an application is nice ;)