esp32: client: SO_SNDBUF not usable
This commit is contained in:
parent
6384eb79e0
commit
d1aa92011b
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue