From a55c8ef63bb4941fdee5ddf00ed564e246c8a939 Mon Sep 17 00:00:00 2001 From: Soikk Date: Sat, 6 Dec 2025 20:16:37 +0100 Subject: Reworked worker architecture - replaced the central socket-multiple accepts architecture thanks to SO_REUSEPORT - removed master/worker distinctions for server and config - fixed bug with rewrites not being read properly by multiple workers because of null characters --- src/rewrites/rewrites.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/rewrites') diff --git a/src/rewrites/rewrites.c b/src/rewrites/rewrites.c index 3a9a762..cf7f4f0 100644 --- a/src/rewrites/rewrites.c +++ b/src/rewrites/rewrites.c @@ -25,9 +25,6 @@ void read_url_rewrites(str file){ off += rwt.output.query.len; while(off < file.len && !charislinebreak(file.ptr[off++])); if(rwt.pattern.len != 0 && rwt.output.path.len != 0){ - rwt.pattern.ptr[rwt.pattern.len] = '\0'; - rwt.output.path.ptr[rwt.output.path.len] = '\0'; - rwt.output.query.ptr[rwt.output.query.len] = '\0'; list_push(rewrites, rwt); } } -- cgit v1.2.3