Remove client connection timeout

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
This commit is contained in:
Lorenzo Blasa
2023-02-24 07:20:54 -08:00
committed by Facebook GitHub Bot
parent b062ee0629
commit b6f3be01f9

View File

@@ -342,15 +342,9 @@ 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;
}
virtual void disconnect() override {
if (socket_ == nullptr) {
return;