-
Notifications
You must be signed in to change notification settings - Fork 12
Revert debugging socket changes to Bedrock Client #247
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
base: main
Are you sure you want to change the base?
Conversation
This reverts all user changes to Client.php back to version 2.1.4 while preserving 4 commits by other developers: - cfb81c7 - neil-marcellini - Save commitCount when response says to - 7348afc - neil-marcellini - Fix phan - 9c6824f - neil-marcellini - Clean up comment per feedback - 28f307e - Thomas Wodarek - Replace deprecated TRAVIS envvars with GITHUB envvars Net change: -87 lines (removes user's debugging and socket handling changes)
| socket_getsockname($this->socket, $localAddress, $localPort); | ||
|
|
||
| if ($socketErrorCode === 115) { | ||
| $this->logger->info('Bedrock\Client - socket_connect returned error 115, waiting for connection to complete.', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should keep this code, as
- It is still happening
- It is more correct than before your changes, and thus muuuuch less confusing to the next engineers who will look at it 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok putting that message back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get it, we are not waiting anymore, the previous message made more sense: Bedrock\Client - socket_connect returned error 115, continuing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for my lack of clarity. I think we should put all of the code doing the proper handling back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok so we want to leave this code as is then and not revert anything? I guess I can clean up a few things here though
| socket_getsockname($this->socket, $localAddress, $localPort); | ||
|
|
||
| if ($socketErrorCode === 115) { | ||
| $this->logger->info('Bedrock\Client - socket_connect returned error 115, waiting for connection to complete.', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get it, we are not waiting anymore, the previous message made more sense: Bedrock\Client - socket_connect returned error 115, continuing.
Explanation of Change
Revert all changes I made for debugging https://github.com/Expensify/Expensify/issues/544983
This wasn't straight forward because of other people making changes to this file as well. I think this is right though, but double check.
Related Issues
https://github.com/Expensify/Expensify/issues/544983
Deployment