Tryingn to button down websocket lifetime issues.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4795 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2024-01-27 02:36:08 +00:00
parent f479165aac
commit 48b967f5b6
3 changed files with 28 additions and 1 deletions

@ -11,6 +11,7 @@ typedef struct _tf_trace_t tf_trace_t;
typedef struct uv_loop_s uv_loop_t;
typedef void (tf_http_message_callback)(tf_http_request_t* request, int op_code, const void* data, size_t size);
typedef void (tf_http_close_callback)(tf_http_request_t* request);
typedef struct _tf_http_request_t
{
@ -25,6 +26,7 @@ typedef struct _tf_http_request_t
struct phr_header* headers;
int headers_count;
tf_http_message_callback* on_message;
tf_http_close_callback* on_close;
void* context;
void* user_data;
int ref_count;