Skip to content
Branch: master
Find file History
Pull request Compare This branch is 22 commits ahead of toniz:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
cgicc_lib
muduo_base
muduo_net
CMakeLists.txt
README.md
backend.cpp
backend.h
fastcgi.cpp
fastcgi.h
main.cpp
make.sh
restart.sh
test.sh
type.h

README.md

Asynchronous Fastcgi

mucgi is a async fastcgi using Muduo Network Library.
Use Some Cgicc Files to parse http request.
Modify the BackendProc Class then You can pass the http request to back-end service.


Requirements

Need Boost C++ Library  

Install

yum install scons -y
scons

Or run:

sh make.sh

Usage

nohup ./mcgi [PORT] [THREAD_NUM] &

Linux Version > 3.9, support for the SO_REUSEPORT socket option. We can add process on runtime.

nohup ./mcgi 16888 10 &
nohup ./mcgi 16888 10 & 
nohup ./mcgi 16888 10 &
nohup ./mcgi 16888 10 &
...

mucgi using long-link to improve performance.

  • Test
    测试

nohup.out not flush immediately,

Test on Centos 6/7

You can’t perform that action at this time.