Browse Source

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.
Ali Mohammad Pur 3 years ago
parent
commit
3bf828e0f9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Userland/Services/RequestServer/ConnectionCache.cpp

+ 1 - 0
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);
             });
         }