From 253432c918dacc8bfd5d9a6a46c45a9dc682c7ec Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Tue, 3 Nov 2026 02:45:55 +0100 Subject: Give the live sync worker a real workstruct --- src/trackerlogic.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/trackerlogic.c') diff --git a/src/trackerlogic.c b/src/trackerlogic.c index 9565090..8e30a48 100644 --- a/src/trackerlogic.c +++ b/src/trackerlogic.c @@ -567,9 +567,11 @@ void trackerlogic_init(void) { stats_init(); } -int workstruct_init(struct ot_workstruct *ws) { +/* Live sync reads whole packets rather than requests and wants a larger + inbuf than the request path does, hence the size. */ +int workstruct_init(struct ot_workstruct *ws, size_t inbuf_size) { memset(ws, 0, sizeof(*ws)); - ws->inbuf = malloc(G_INBUF_SIZE); + ws->inbuf = malloc(inbuf_size); ws->outbuf = malloc(G_OUTBUF_SIZE); #ifdef _DEBUG_HTTPERROR ws->debugbuf = malloc(G_DEBUGBUF_SIZE); -- cgit v1.3