Git Product home page Git Product logo

dinner's Introduction

dinner

ABOUT

This is a lightweight web server based on epoll and a simple EDA (event-driven architecture).

BUILD

git clone https://github.com/Arondight/dinner.git dinner
cd dinner
./build.sh

For a test, you can run dinner after build like:

./bin/dinner -p 8080 -r htdocs

Then visit 127.0.0.1:8080 in your web browser.

If you want to test CGI, visit 127.0.0.1:8080/test.html.

Read systemd/README.txt for configure.

DEPENDENCIES

  1. Linux >= 2.6

USAGE

Run dinner -h

COPYRIGHT

Copyright (c) 2015-2016 秦凡东 (Qin Fandong)

LICENSE

Read LICENSE

dinner's People

Contributors

arondight avatar

Watchers

 avatar  avatar  avatar  avatar

dinner's Issues

dinner will not quit when get invalid options

$ dinner -i
dinner: invalid option -- 'i'
 469 of dinner.c:   (main) - trying work directory: "/home/is/Repo/dinner/htdocs/".
 489 of dinner.c:   (main) - change work directory: "/home/is/Repo/dinner/htdocs/".
 497 of dinner.c:   (main) - dinner is running on http://127.0.0.1:8080/.
 498 of dinner.c:   (main) - listenning fd 4.
^C 119 of dinner.c: (sigtermHandler) - stopping dinner.
 122 of dinner.c:   (sigtermHandler) - delete all events.
 129 of dinner.c:   (sigtermHandler) - destory all events.
 137 of dinner.c:   (sigtermHandler) - dinner is stoped without errors.
 139 of dinner.c:   (sigtermHandler) - bye.
$ dinner -h | head -1
This is dinner, version 0.03 .

File transfered over the World Wide Web may be truncated

Info Of Boxes

Box City OS Shell Running
Server Tokyo Arch Linux ZSH dinner & nginx
Client Beijing Arch Linux ZSH wget & Firefox

And For More...

$ wget http://site.arondight.me:8080/1987.mp3 -O 1987.dinner.mp3 |& >/dev/null
$ wget http://site.arondight.me/1987.mp3 -O 1987.nginx.mp3 |& >/dev/null
$ wc -c 1987.{dinner,nginx}.mp3
  84724 1987.dinner.mp3
4863772 1987.nginx.mp3
4948496 总用量

The size is always be 84724.

Info Of dinner

$ dinner -h | head -1
This is dinner, version 0.03 .

Will blocked on a connection

This can be imperceptible if file is small, but will become apparent when serving a big file.

$ ./bin/dinner -h | head -1
This is dinner, version 0.03.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.