Skip to content

Commit

Permalink
Remove client connection timeout
Browse files Browse the repository at this point in the history
Summary: Having a timeout of 10 seconds can create a connection loop if Desktop is slow and doesn't provide a client certificate within the timeframe.

Reviewed By: antonk52

Differential Revision: D43405793

fbshipit-source-id: b1eebb4d2d66f02000f15a9889992ed0cc79bde2
  • Loading branch information
lblasa authored and facebook-github-bot committed Feb 24, 2023
1 parent b062ee0 commit b6f3be0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions android/src/main/cpp/sonar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,7 @@ class JFlipperWebSocket : public facebook::flipper::FlipperSocket {
}));
socket_->connect();

auto state = connected.wait_for(std::chrono::seconds(10));
if (state == std::future_status::ready) {
return connected.get();
}

disconnect();
return false;
return connected.get();
}

virtual void disconnect() override {
Expand Down

0 comments on commit b6f3be0

Please sign in to comment.