Fix: partial recv lead to client disconnect
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-events.c
index 2cb6ad68ab814b63bc77c2792c17e5a05c147a0f..7b86fb39c3902e2ac15d8aecae3d38dffea9ef85 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.02317 seconds and 4 git commands to generate.