From eeb967befb2c4cce66dc00ac9d9670cd21b1523e Mon Sep 17 00:00:00 2001 From: Joseph Werle Date: Sat, 7 Sep 2024 14:18:12 +0200 Subject: [PATCH] refactor(ipc): disable service worker timeout logic --- src/ipc/bridge.cc | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/ipc/bridge.cc b/src/ipc/bridge.cc index 0a538a47a3..bade05b444 100644 --- a/src/ipc/bridge.cc +++ b/src/ipc/bridge.cc @@ -669,12 +669,13 @@ export * from '{{url}}' }); if (fetched) { - this->core->setTimeout(32000, [request] () mutable { - if (request->isActive()) { - auto response = SchemeHandlers::Response(request, 408); - response.fail("ServiceWorker request timed out."); - } - }); + // FIXME(@jwerle): revisit timeout + //this->core->setTimeout(32000, [request] () mutable { + //if (request->isActive()) { + //auto response = SchemeHandlers::Response(request, 408); + //response.fail("ServiceWorker request timed out."); + //} + //}); return; } } @@ -1013,12 +1014,13 @@ export * from '{{url}}' }); if (fetched) { - this->core->setTimeout(32000, [request] () mutable { - if (request->isActive()) { - auto response = SchemeHandlers::Response(request, 408); - response.fail("Protocol handler ServiceWorker request timed out."); - } - }); + // FIXME(@jwerle): revisit timeout + //this->core->setTimeout(32000, [request] () mutable { + //if (request->isActive()) { + //auto response = SchemeHandlers::Response(request, 408); + //response.fail("Protocol handler ServiceWorker request timed out."); + //} + //}); return; } }