luv
luv copied to clipboard
hi, I wrote a small web server on luv to replace mongrel2 (now only http)
It is at https://github.com/daogangtang/lgserver
I tested it, it only support tens cocurrencies, while cocurrencies rise, lgserver blocked and no response to tester.
maybe I am not very familiar with luv and don't use it well.
Can you give some advices? Thank you.
i see you use one parser for all requests, so i believe it may choke with input. see https://github.com/dvv/luv-1/blob/master/examples/http_hellosvr.lua
hi, I modify my code as your example, but the performance is not better much more. some suggestions more?
thank you.
On Mon, Oct 15, 2012 at 10:14 PM, Vladimir Dronnikov < [email protected]> wrote:
i see you use one parser for all requests, so i believe it may choke with input. see https://github.com/dvv/luv-1/blob/master/examples/http_hellosvr.lua
— Reply to this email directly or view it on GitHubhttps://github.com/richardhundt/luv/issues/19#issuecomment-9446254.
Nothing is impossible.
oops. confirmed, my old http code broke too. @richardhundt: at #21 -- server really blocks after 10-12 connections. wonder what can be the cause?
can this problem be checked?
i believe @richardhundt is in the middle of major refactor, so let us let him finish and check our code against new version
OK, I know, hopeful!
On Fri, Oct 19, 2012 at 4:21 PM, Vladimir Dronnikov < [email protected]> wrote:
i believe @richardhundt https://github.com/richardhundt is in the middle of major refactor, so let us let him finish and check our code against new version
— Reply to this email directly or view it on GitHubhttps://github.com/richardhundt/luv/issues/19#issuecomment-9593049.
Nothing is impossible.