プロジェクト
GitHubで見る
peachey2k2/relayouter
概要
アセンブリ言語で書かれた、最小構成でマルチプロセス対応の超高速HTTPサーバーです。
システム・インフラ計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- +1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルrelayouter
High-performance non-blocking static file serving web server implementation written in FASM, mostly inspired by tiny-nginx.

Naturally with this being x86 assembly using raw syscalls, it won't work on anything other than a Linux x86-64 machine.
Overview
Relayouter is a very small (currently ~5.3 KiB) nginx-like http server that is:
- written in x86 assembly without libc (or any linking at all),
- parallelized across multiple processes bound to each CPU core,
- utilizing
epollfor efficient I/O multiplexing, - using only a single arena allocation for sharing data between processes (everything else is stack allocated),
- able to decode URLs and detect MIME types properly.
[!NOTE] There are some critical bugs I need to fix with this. It's also very easily exploitable so don't use this in anything important.
Usage
# clone the repo
git clone "https://github.com/peachey2k2/relayouter.git"
cd ./relayouter
make build # build
make run # build and run
It'll be hosted on http://localhost:8080/ and serve from ./public
Todo
- recover from more errors
- switch to edge-triggered
- redo jumps with consideration for branch predictions
- reorganize the files
- configuration system
関連プロジェクトを探す
読み込み中…