You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug]Concurrent with more than 1000 requests. #129
I find that if I send more than 1000 requests at the same time, some requests will get timeout exception.
unable handle http message with bad separator:
Some http header and body are concatenated by "\n\n", not "\r\n\r\n". this package cannnot handle theme correctly, but browser can.
ps: I encountered this problem on win, I do not know Linux will not have this problem
I find that if I send more than 1000 requests at the same time, some requests will get timeout exception.
This is more or less expected behavior as your system and/or network may not be able to cope with this high number of concurrent requests. As an alternative, I would suggest using some kind of queuing mechanism to limit your concurrency, for example https://github.com/clue/php-mq-react.
Some http header and body are concatenated by "\n\n", not "\r\n\r\n". this package cannnot handle theme correctly, but browser can.
Can you show us some code and/or URLs to reproduce the problem you're seeing? As per https://tools.ietf.org/html/rfc7230#section-3.5 this would require a CRLF, but apparently also accept a LF for robustness.
Activity
clue commentedon Feb 27, 2018
This is more or less expected behavior as your system and/or network may not be able to cope with this high number of concurrent requests. As an alternative, I would suggest using some kind of queuing mechanism to limit your concurrency, for example https://github.com/clue/php-mq-react.
Can you show us some code and/or URLs to reproduce the problem you're seeing? As per https://tools.ietf.org/html/rfc7230#section-3.5 this would require a CRLF, but apparently also accept a LF for robustness.
slince commentedon Feb 27, 2018
@clue I wrote some debug code in package "react/http-client"
//vendor/react/http-client/src/Request.php#L133
and result:
This is a http 1.0 response.
kelunik commentedon Apr 7, 2018
@slince Could you share which server software generates such responses?
slince commentedon Apr 8, 2018
@kelunik The service is very old and you can see that it is using the http 1.0, which is a CGI written in C language