-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Server requestHandlers not concurrent, waits for response #334
Comments
What are you using to test this? There doesn't seem to be anything wrong with your code so I'm suspecting the issue might be on the requesting side. Also what are you using the empty |
I'm using
The code is cutted from project, where |
Now, I have tested in two different browsers (updated
PHP v7.1.24 on CentOS 7, running in CLI Edit
|
Thanks @WyriHaximus for your support. I have tested it now on Windows and still no luck.
As we can see, connections are in time parallel, but processing of request is waiting to resolving |
I figured out, when used |
Glad to hear that you solved it. The |
Thank you very much for your very quick help. I was a little confused about using |
I found out, that
Server
requestHandlers
are executed simultaneously waiting for response for preceding call.I have make use case, where
requestHandler
returnspromise
that is resolve in$loop
Timer after 2 seconds. In this 2 seconds,server
and other connections is waiting. When the response is sent (it can be response with stream), next request is being processed.Use case:
Trying 3 concurrent connections.
Expected possible output on STDOUT, running time about 2 seconds:
The generated output. Make attention to order of request - response pair. Running time about 6 seconds.
The text was updated successfully, but these errors were encountered: