summaryrefslogtreecommitdiff
path: root/src/rewrites
diff options
context:
space:
mode:
authorSoikk2025-12-06 20:16:37 +0100
committerSoikk2025-12-06 20:19:18 +0100
commita55c8ef63bb4941fdee5ddf00ed564e246c8a939 (patch)
treeeed8f07ee9c2deb5d82d9dac130ef228a0b7b705 /src/rewrites
parent534303b80b5304a2b29d456d6b5c7a6ac1daaf1c (diff)
downloadsoikk-server-a55c8ef63bb4941fdee5ddf00ed564e246c8a939.tar.xz
soikk-server-a55c8ef63bb4941fdee5ddf00ed564e246c8a939.tar.zst
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
Diffstat (limited to 'src/rewrites')
-rw-r--r--src/rewrites/rewrites.c3
1 files changed, 0 insertions, 3 deletions
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);
}
}