From 064c548f9bdf743be51b4ecaaf47cd27f64e076a Mon Sep 17 00:00:00 2001
From: Andy Green <andy@warmcat.com>
Date: Fri, 11 May 2018 10:25:28 +0800
Subject: [PATCH] lws_read_h1: handle LRS_RETURNED_CLOSE
---
lib/plat/lws-plat-unix.c | 4 ----
lib/roles/h1/ops-h1.c | 1 +
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/lib/plat/lws-plat-unix.c b/lib/plat/lws-plat-unix.c
index 351e4b9b..c731a645 100644
--- a/lib/plat/lws-plat-unix.c
+++ b/lib/plat/lws-plat-unix.c
@@ -30,10 +30,6 @@
#endif
#include <dirent.h>
-#if defined(LWS_HAVE_TCP_USER_TIMEOUT) && defined(__linux__)
-#include <linux/tcp.h>
-#endif
-
int
lws_plat_socket_offset(void)
{
diff --git a/lib/roles/h1/ops-h1.c b/lib/roles/h1/ops-h1.c
index d3b16f4d..49dfe4b4 100644
--- a/lib/roles/h1/ops-h1.c
+++ b/lib/roles/h1/ops-h1.c
@@ -195,6 +195,7 @@ postbody_completion:
}
break;
+ case LRS_RETURNED_CLOSE:
case LRS_AWAITING_CLOSE_ACK:
case LRS_WAITING_TO_SEND_CLOSE:
case LRS_SHUTDOWN:
--
GitLab