Skip to content

Commit

Permalink
refactor(ipc): disable service worker timeout logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Sep 7, 2024
1 parent 1b13633 commit eeb967b
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/ipc/bridge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit eeb967b

Please sign in to comment.