Fix some issues with transferring conn back to server

This commit is contained in:
2025-08-22 10:51:24 -04:00
parent 1d86f48d5e
commit ba3258ab16
4 changed files with 33 additions and 22 deletions

View File

@@ -142,9 +142,9 @@ private:
* This method is thread-safe and can be called from any thread.
* The connection will be re-added to the epoll for continued processing.
*
* @param connection Raw pointer to the connection being released back
* @param connection Unique pointer to the connection being released back
*/
void receiveConnectionBack(Connection *connection);
void receiveConnectionBack(std::unique_ptr<Connection> connection);
// Make non-copyable and non-movable
Server(const Server &) = delete;