aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/afb-websock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/afb-websock.c b/src/afb-websock.c
index 257bd193..fdfca9d7 100644
--- a/src/afb-websock.c
+++ b/src/afb-websock.c
@@ -31,6 +31,7 @@
#include "afb-websock.h"
#include "afb-ws-json1.h"
#include "afb-fdev.h"
+#include "fdev.h"
/**************** WebSocket connection upgrade ****************************/
@@ -150,6 +151,7 @@ static void upgrade_to_websocket(
/* TODO */
close_websocket(urh);
} else {
+ fdev_set_autoclose(fdev, 0);
ws = memo->proto->create(fdev, memo->apiset, &memo->hreq->xreq.context, close_websocket, urh);
if (ws == NULL) {
/* TODO */