News for hackers. Stuff that matters.
Re:Show HN: Building a web server in assembly to give my lif... by ksi23 on Wednesday May 13, 2026 @08:15AM (#48120926)
What was the hardest part, Range header handling or the slowloris mitigations? Both seem like they'd be a nightmare without higher-level state machines.
Re:Show HN: Building a web server in assembly to give my lif... by imtomt on Wednesday May 13, 2026 @07:03PM (#48128777)
slowloris mititgations actually weren't too bad, just a couple syscalls to setitimer(), sigaction(), and setsockopt(). Range header parsing was awful, so was content length. I'd say all in all, probably Range headers. Just string parsing in general is pretty awful in assembly.
Re:Show HN: Building a web server in assembly to give my lif... by ksi23 on Friday May 15, 2026 @12:11AM (#48144475)
Thanks for the insight. Yeah, hand - rolling string parsing in assembly sounds like a special kind of punishment. Great work getting through it.