Fix: partial recv lead to client disconnect
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-events.c
index 6c69a02328e4c6a4ffd483c100522722cebdae1c..9660f9aad1bb3efcd34afd25d1a7056d0bfaa10f 100644 (file)
@@ -2564,8 +2564,7 @@ int client_flush_outgoing_queue(struct notification_client *client,
        ret = lttcomm_send_unix_sock_non_block(client->socket,
                        client->communication.outbound.buffer.data,
                        to_send_count);
-       if ((ret < 0 && (errno == EAGAIN || errno == EWOULDBLOCK)) ||
-                       (ret > 0 && ret < to_send_count)) {
+       if ((ret >= 0 && ret < to_send_count)) {
                DBG("[notification-thread] Client (socket fd = %i) outgoing queue could not be completely flushed",
                                client->socket);
                to_send_count -= max(ret, 0);
This page took 0.023692 seconds and 4 git commands to generate.