Fix: remove nonblock flag of sessiond socket in consumer
authorDavid Goulet <dgoulet@efficios.com>
Tue, 4 Jun 2013 19:56:43 +0000 (15:56 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 4 Jun 2013 19:56:45 +0000 (15:56 -0400)
There is no need for non blocking socket. Furthermore, we have observed
unstable behaviors with a non blocking side (consumer) and a blocking
side (sessiond).

Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/consumer.c

index feec3562d64fcf46df09e834870377637fda75dc..45eede109bb5cdc5b019e480ea1ed0bae8f1f8b3 100644 (file)
@@ -2873,12 +2873,6 @@ void *consumer_thread_sessiond_poll(void *data)
                goto end;
        }
 
-       ret = fcntl(client_socket, F_SETFL, O_NONBLOCK);
-       if (ret < 0) {
-               PERROR("fcntl O_NONBLOCK");
-               goto end;
-       }
-
        /* prepare the FDs to poll : to client socket and the should_quit pipe */
        consumer_sockpoll[0].fd = ctx->consumer_should_quit[0];
        consumer_sockpoll[0].events = POLLIN | POLLPRI;
@@ -2896,11 +2890,6 @@ void *consumer_thread_sessiond_poll(void *data)
                WARN("On accept");
                goto end;
        }
-       ret = fcntl(sock, F_SETFL, O_NONBLOCK);
-       if (ret < 0) {
-               PERROR("fcntl O_NONBLOCK");
-               goto end;
-       }
 
        /*
         * Setup metadata socket which is the second socket connection on the
This page took 0.026886 seconds and 4 git commands to generate.