diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-30 01:00:52 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-30 01:00:52 +0100 |
| commit | 79f4110365fe85f4377c50f0893134a8d5e45575 (patch) | |
| tree | e69f5ceae67e4f283bede83f6649b7df0ded7076 /ot_http.h | |
| parent | d92945fe3a7960cfc7ddfd70a9a37d6db666c1e2 (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.h | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -37,6 +37,9 @@ struct http_data { | |||
| 37 | void http_interest_add(const int64_t s, struct http_data *cookie, int what); | 37 | void http_interest_add(const int64_t s, struct http_data *cookie, int what); |
| 38 | void http_interest_drop(const int64_t s, struct http_data *cookie, int what); | 38 | void 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 */ | ||
| 41 | void http_close(const int64_t s); | ||
| 42 | |||
| 40 | ssize_t http_handle_request(const int64_t s, struct ot_workstruct *ws); | 43 | ssize_t http_handle_request(const int64_t s, struct ot_workstruct *ws); |
| 41 | ssize_t http_sendiovecdata(const int64_t s, struct ot_workstruct *ws, size_t iovec_entries, struct iovec *iovector, int is_partial); | 44 | ssize_t http_sendiovecdata(const int64_t s, struct ot_workstruct *ws, size_t iovec_entries, struct iovec *iovector, int is_partial); |
| 42 | ssize_t http_issue_error(const int64_t s, struct ot_workstruct *ws, int code); | 45 | ssize_t http_issue_error(const int64_t s, struct ot_workstruct *ws, int code); |
