Don't clear write interest if pending_response_queue_ non empty

This commit is contained in:
2025-09-15 16:35:37 -04:00
parent e2115152c8
commit ae0c014298

View File

@@ -295,7 +295,7 @@ uint32_t Connection::write_bytes() {
// Check if queue is empty and remove EPOLLOUT interest // Check if queue is empty and remove EPOLLOUT interest
{ {
std::lock_guard lock(mutex_); std::lock_guard lock(mutex_);
if (message_queue_.empty()) { if (message_queue_.empty() && pending_response_queue_.empty()) {
auto server = server_.lock(); auto server = server_.lock();
if (server) { if (server) {
struct epoll_event event; struct epoll_event event;