Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
miketang84 opened this issue Oct 15, 2012 · 6 comments

Comments

@miketang84
Copy link

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
Copy link
Contributor

dvv commented Oct 15, 2012

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
Copy link
Author

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//issues/19#issuecomment-9446254.

Nothing is impossible.

@dvv
Copy link
Contributor

dvv commented Oct 16, 2012

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
Copy link
Author

can this problem be checked?

@dvv
Copy link
Contributor

dvv commented Oct 19, 2012

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

@miketang84
Copy link
Author

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//issues/19#issuecomment-9593049.

Nothing is impossible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants