From 3bf828e0f97e06a486958848ad74d5f1bbc9575c Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Mon, 7 Feb 2022 23:43:39 +0330 Subject: [PATCH] RequestServer: Reenable socket notifications unconditionally There's a possible window where the notifications are disabled, and any request coming at that time will never get any data if it relies on socket notifications. --- Userland/Services/RequestServer/ConnectionCache.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Services/RequestServer/ConnectionCache.cpp b/Userland/Services/RequestServer/ConnectionCache.cpp index 6582ad2059b..fc5aea4c439 100644 --- a/Userland/Services/RequestServer/ConnectionCache.cpp +++ b/Userland/Services/RequestServer/ConnectionCache.cpp @@ -64,6 +64,7 @@ void request_did_finish(URL const& url, Core::Stream::Socket const* socket) connection->timer.start(); connection->current_url = url; connection->job_data = connection->request_queue.take_first(); + connection->socket->set_notifications_enabled(true); connection->job_data.start(*connection->socket); }); }