summaryrefslogtreecommitdiff
path: root/ot_http.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-10-31 18:48:00 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-10-31 18:48:00 +0100
commit5b25f89d00433f1c11576d1ea19304797dc60d1b (patch)
tree3810c8585354f4795bd2f441b64f70e581855214 /ot_http.c
parent0bd368691eb0d9051725d76b2a3721bb902c919b (diff)
Refactor ot_workqueue out of ot_mutex, no behaviour change
Diffstat (limited to 'ot_http.c')
-rw-r--r--ot_http.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ot_http.c b/ot_http.c
index 602ff94..b0e1de3 100644
--- a/ot_http.c
+++ b/ot_http.c
@@ -22,6 +22,7 @@
22#include "ot_iovec.h" 22#include "ot_iovec.h"
23#include "ot_ip.h" 23#include "ot_ip.h"
24#include "ot_mutex.h" 24#include "ot_mutex.h"
25#include "ot_workqueue.h"
25#include "ot_scan.h" 26#include "ot_scan.h"
26#include "ot_event.h" 27#include "ot_event.h"
27#include "ot_fdstate.h" 28#include "ot_fdstate.h"
@@ -77,7 +78,7 @@ void http_close(const int64_t sock) {
77 free(cookie->batch); 78 free(cookie->batch);
78 buf_reset(&cookie->request); 79 buf_reset(&cookie->request);
79 if (cookie->flag & (STRUCT_HTTP_FLAG_WAITINGFORTASK | STRUCT_HTTP_FLAG_CHUNKED_IN_TRANSFER)) 80 if (cookie->flag & (STRUCT_HTTP_FLAG_WAITINGFORTASK | STRUCT_HTTP_FLAG_CHUNKED_IN_TRANSFER))
80 mutex_workqueue_canceltask(sock); 81 workqueue_canceltask(sock);
81 if (!(cookie->flag & STRUCT_HTTP_FLAG_ONSTACK)) 82 if (!(cookie->flag & STRUCT_HTTP_FLAG_ONSTACK))
82 free(cookie); 83 free(cookie);
83 } 84 }