richardhundt / luv

libuv bindings for Lua
Apache License 2.0
118 stars 19 forks source link

hi, I wrote a small web server on luv to replace mongrel2 (now only http) #19

Open miketang84 opened 12 years ago

miketang84 commented 12 years ago

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.

dvv commented 12 years ago

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

miketang84 commented 12 years ago

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 < notifications@github.com> 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.

dvv commented 12 years ago

oops. confirmed, my old http code broke too. @richardhundt: at #21 -- server really blocks after 10-12 connections. wonder what can be the cause?

miketang84 commented 11 years ago

can this problem be checked?

dvv commented 11 years ago

i believe @richardhundt is in the middle of major refactor, so let us let him finish and check our code against new version

miketang84 commented 11 years ago

OK, I know, hopeful!

On Fri, Oct 19, 2012 at 4:21 PM, Vladimir Dronnikov < notifications@github.com> 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.