truncated send issue independent of LWS_NO_EXTENSIONS
authorAndy Green <andy.green@linaro.org>
Tue, 1 Apr 2014 03:24:44 +0000 (11:24 +0800)
committerAndy Green <andy.green@linaro.org>
Tue, 1 Apr 2014 03:24:44 +0000 (11:24 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/libwebsockets.c

index acbc81e..0c94db5 100644 (file)
@@ -727,6 +727,7 @@ lws_handle_POLLOUT_event(struct libwebsocket_context *context,
        int ret;
        int m;
        int handled = 0;
        int ret;
        int m;
        int handled = 0;
+#endif
 
        /* pending truncated sends have uber priority */
 
 
        /* pending truncated sends have uber priority */
 
@@ -738,6 +739,7 @@ lws_handle_POLLOUT_event(struct libwebsocket_context *context,
                return 0;
        }
 
                return 0;
        }
 
+#ifndef LWS_NO_EXTENSIONS
        for (n = 0; n < wsi->count_active_extensions; n++) {
                if (!wsi->active_extensions[n]->callback)
                        continue;
        for (n = 0; n < wsi->count_active_extensions; n++) {
                if (!wsi->active_extensions[n]->callback)
                        continue;