Skip to content

Conversation

@justinpersaud
Copy link
Contributor

@justinpersaud justinpersaud commented Oct 31, 2025

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

  • I followed the steps in the README to ensure this PR is deployed properly

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)
@justinpersaud justinpersaud self-assigned this Oct 31, 2025
socket_getsockname($this->socket, $localAddress, $localPort);

if ($socketErrorCode === 115) {
$this->logger->info('Bedrock\Client - socket_connect returned error 115, waiting for connection to complete.', [
Copy link
Contributor

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

  1. It is still happening
  2. It is more correct than before your changes, and thus muuuuch less confusing to the next engineers who will look at it 😄

Copy link
Contributor Author

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

Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor Author

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.', [
Copy link
Contributor

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.

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

Successfully merging this pull request may close these issues.

4 participants