esp32: client: SO_SNDBUF not usable
authorAndy Green <andy@warmcat.com>
Fri, 28 Apr 2017 16:55:06 +0000 (00:55 +0800)
committerAndy Green <andy@warmcat.com>
Fri, 28 Apr 2017 16:55:06 +0000 (00:55 +0800)
lib/client.c

index 663a974b479cff72c8cfcf869f6ef7bec2cc4865..1919f0309c2c7cd9b0d88ac56311822ec367f60a 100755 (executable)
@@ -960,12 +960,14 @@ check_accept:
        wsi->u.ws.rx_ubuf_alloc = n;
        lwsl_info("Allocating client RX buffer %d\n", n);
 
+#if !defined(LWS_WITH_ESP32)
        if (setsockopt(wsi->desc.sockfd, SOL_SOCKET, SO_SNDBUF, (const char *)&n,
                       sizeof n)) {
                lwsl_warn("Failed to set SNDBUF to %d", n);
                cce = "HS: SO_SNDBUF failed";
                goto bail3;
        }
+#endif
 
        lwsl_debug("handshake OK for protocol %s\n", wsi->protocol->name);