Skip to content

Conversation

@justinpersaud
Copy link
Contributor

Details

If a socket is not connected to the proxy, return early which will cause the poll loop to wait for a connection

Fixed Issues

relates to https://github.com/Expensify/Expensify/issues/578735

Tests


Internal Testing Reminder: when changing bedrock, please compile auth against your new changes

if (state.load() == Socket::State::CONNECTING) {
return true;
}

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 understand why this would make a difference given that the base class works without this.

Also, so far as I can tell, the only places we can call this are in STCPManager::postPoll gated on socket state being Socket::CONNECTED (here) or Socket::SHUTTINGDOWN (here) and I don't think the intended case is to skip when SHUTTINGDOWN.

Can you tell me where this gets called where this would be relevant, and maybe give an example case of what this fixes?

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