summaryrefslogtreecommitdiff
path: root/ot_http.h
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-10-30 01:00:52 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-10-30 01:00:52 +0100
commit79f4110365fe85f4377c50f0893134a8d5e45575 (patch)
treee69f5ceae67e4f283bede83f6649b7df0ded7076 /ot_http.h
parentd92945fe3a7960cfc7ddfd70a9a37d6db666c1e2 (diff)
Consolidate all tcp/http tear down into a single http_close function to prevent a rare UAF for expiring connections
Diffstat (limited to 'ot_http.h')
-rw-r--r--ot_http.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ot_http.h b/ot_http.h
index 1ccabfd..0f351c1 100644
--- a/ot_http.h
+++ b/ot_http.h
@@ -37,6 +37,9 @@ struct http_data {
37void http_interest_add(const int64_t s, struct http_data *cookie, int what); 37void http_interest_add(const int64_t s, struct http_data *cookie, int what);
38void http_interest_drop(const int64_t s, struct http_data *cookie, int what); 38void http_interest_drop(const int64_t s, struct http_data *cookie, int what);
39 39
40/* Close a connection and release everything that belongs to it */
41void http_close(const int64_t s);
42
40ssize_t http_handle_request(const int64_t s, struct ot_workstruct *ws); 43ssize_t http_handle_request(const int64_t s, struct ot_workstruct *ws);
41ssize_t http_sendiovecdata(const int64_t s, struct ot_workstruct *ws, size_t iovec_entries, struct iovec *iovector, int is_partial); 44ssize_t http_sendiovecdata(const int64_t s, struct ot_workstruct *ws, size_t iovec_entries, struct iovec *iovector, int is_partial);
42ssize_t http_issue_error(const int64_t s, struct ot_workstruct *ws, int code); 45ssize_t http_issue_error(const int64_t s, struct ot_workstruct *ws, int code);