projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6384eb7
)
esp32: client: SO_SNDBUF not usable
author
Andy Green
<andy@warmcat.com>
Fri, 28 Apr 2017 16:55:06 +0000
(
00:55
+0800)
committer
Andy Green
<andy@warmcat.com>
Fri, 28 Apr 2017 16:55:06 +0000
(
00:55
+0800)
lib/client.c
patch
|
blob
|
history
diff --git
a/lib/client.c
b/lib/client.c
index 663a974b479cff72c8cfcf869f6ef7bec2cc4865..1919f0309c2c7cd9b0d88ac56311822ec367f60a 100755
(executable)
--- a/
lib/client.c
+++ b/
lib/client.c
@@
-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);