-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[10.x] Fixed server Closing output on invalid $requestPort
#46726
Conversation
On a docker deploy I get a random `Undefined array key` when try to manage the `Closing` server response on a undefined `$requestPort`. Maybe the problem is `getRequestPortFromLine` parse, but for now maybe the best option is check the `$this->requestsPool[$requestPort]` before continue with the output.
$requestPort
$requestPort
@taylorotwell I have added a logger to
I think that the requestsPool key should be the IP and the port. Regards! |
@eusonlito what do you mean exactly? Should we revert this PR or...? |
@driesvints the previous (and current) version of My patch is just to avoid the error when trying to close the same request twice. Ideally, I could send a PR to test this implementation. |
Yes feel free to try a PR if you want 👍 |
Laravel: 10.6.2
PHP: 8.1.17
On a docker deploy I get a random
Undefined array key
error when the server try to manage theClosing
response on a undefined$requestPort
.The server command is:
Maybe the problem is
getRequestPortFromLine
parse, but for now maybe the best option is check the$this->requestsPool[$requestPort]
value before continue with the output.