You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Bump libwebsockets to version 2.4.2
This commit is contained in:
11
thirdparty/lws/libwebsockets.c
vendored
11
thirdparty/lws/libwebsockets.c
vendored
@@ -482,8 +482,9 @@ lws_close_free_wsi(struct lws *wsi, enum lws_close_status reason)
|
||||
wsi->mode == LWSCM_WSCL_ISSUE_HANDSHAKE)
|
||||
goto just_kill_connection;
|
||||
|
||||
if (wsi->mode == LWSCM_HTTP_SERVING ||
|
||||
wsi->mode == LWSCM_HTTP2_SERVING) {
|
||||
if (!wsi->told_user_closed &&
|
||||
(wsi->mode == LWSCM_HTTP_SERVING ||
|
||||
wsi->mode == LWSCM_HTTP2_SERVING)) {
|
||||
if (wsi->user_space)
|
||||
wsi->vhost->protocols->callback(wsi,
|
||||
LWS_CALLBACK_HTTP_DROP_PROTOCOL,
|
||||
@@ -583,7 +584,7 @@ just_kill_connection:
|
||||
lws_remove_child_from_any_parent(wsi);
|
||||
n = 0;
|
||||
|
||||
if (wsi->user_space) {
|
||||
if (!wsi->told_user_closed && wsi->user_space) {
|
||||
lwsl_debug("%s: %p: DROP_PROTOCOL %s\n", __func__, wsi,
|
||||
wsi->protocol->name);
|
||||
wsi->protocol->callback(wsi,
|
||||
@@ -656,8 +657,10 @@ just_kill_connection:
|
||||
__func__, wsi, (int)(long)wsi->desc.sockfd,
|
||||
wsi->state);
|
||||
if (!wsi->socket_is_permanently_unusable &&
|
||||
lws_sockfd_valid(wsi->desc.sockfd))
|
||||
lws_sockfd_valid(wsi->desc.sockfd)) {
|
||||
wsi->socket_is_permanently_unusable = 1;
|
||||
n = shutdown(wsi->desc.sockfd, SHUT_WR);
|
||||
}
|
||||
}
|
||||
if (n)
|
||||
lwsl_debug("closing: shutdown (state %d) ret %d\n",
|
||||
|
||||
Reference in New Issue
Block a user