diff --git a/.travis.yml b/.travis.yml index 6d240690..6960d353 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,7 @@ env: - LWS_METHOD=nodaemon CMAKE_ARGS="-DLWS_WITHOUT_DAEMONIZE=ON" - LWS_METHOD=cgi CMAKE_ARGS="-DLWS_WITH_CGI=ON" - LWS_METHOD=nologs CMAKE_ARGS="-DLWS_WITH_NO_LOGS=ON" + - LWS_METHOD=smp CMAKE_ARGS="-DLWS_MAX_SMP=32 -DLWS_WITH_MINIMAL_EXAMPLES=1" os: - linux diff --git a/lib/roles/http/server/server.c b/lib/roles/http/server/server.c index 44ee11e1..d80dbf13 100644 --- a/lib/roles/http/server/server.c +++ b/lib/roles/http/server/server.c @@ -39,9 +39,6 @@ lws_context_init_server(struct lws_context_creation_info *info, struct lws_vhost *vhost) { int n, opt = 1, limit = 1; -#if defined(__linux__) && defined(SO_REUSEPORT) - int n1; -#endif lws_sockfd_type sockfd; struct lws_vhost *vh; struct lws *wsi; @@ -197,13 +194,12 @@ done_list: #endif #if defined(__linux__) && defined(SO_REUSEPORT) - n1 = lws_check_opt(vhost->options, - LWS_SERVER_OPTION_ALLOW_LISTEN_SHARE); /* keep coverity happy */ #if LWS_MAX_SMP > 1 n = 1; #else - n = n1; + n = lws_check_opt(vhost->options, + LWS_SERVER_OPTION_ALLOW_LISTEN_SHARE); #endif if (n && vhost->context->count_threads > 1) if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEPORT,