[Libwebsockets] setting SO_SNDBUF socket option

Andy Green andy at warmcat.com
Mon Feb 10 01:46:42 CET 2020



On February 9, 2020 9:18:11 PM GMT, Olivier Langlois <olivier at olivierlanglois.net> wrote:
>In roles/ws/client-ws.c,
>
>There is the following code:
>
>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

This is just cruft to me... I take it nobody cares if I just remove it.

-Andy


More information about the Libwebsockets mailing list