Simplify http_open().
authorAndre Noll <maan@systemlinux.org>
Sat, 19 Jan 2008 12:09:22 +0000 (13:09 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 19 Jan 2008 12:09:22 +0000 (13:09 +0100)
No need to shutdown the clients if listen failed: There
can not possibly exist any connected clients at this point.

http_send.c

index 6b67a6a..c1a4fc6 100644 (file)
@@ -314,10 +314,8 @@ static int http_open(void)
        int ret;
 
        listen_fd = para_listen(AF_UNSPEC, IPPROTO_TCP, conf.http_port_arg);
-       if (listen_fd < 0) {
-               http_shutdown_clients();
+       if (listen_fd < 0)
                return listen_fd;
-       }
        ret = mark_fd_nonblocking(listen_fd);
        if (ret < 0) {
                PARA_EMERG_LOG("%s\n", para_strerror(-ret));