Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 670 Bytes

File metadata and controls

18 lines (11 loc) · 670 Bytes

RawHttpServer

This is a raw socket HTTP server, which means it's responsible for handling the three-way handshake and constructing packets. Memory is managed using arenas.

Usage:

Disable interference from the kernel TCP stack with: sudo iptables -A OUTPUT -p tcp --tcp-flags RST RST -j DROP

Run the server and make a request:

gcc server.c && sudo ./a.out

curl localhost:8080

References: