Skip to content
프로젝트

소개

어셈블리로 작성된 최소 구성의 멀티프로세스 초고속 HTTP 서버입니다.

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

relayouter

High-performance non-blocking static file serving web server implementation written in FASM, mostly inspired by tiny-nginx.

image

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 epoll for 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

관련 프로젝트 살펴보기

불러오는 중…