1
0
mirror of https://github.com/lxsang/ant-http synced 2024-06-26 18:39:48 +02:00
Go to file
lxsang b584007d49 Race condition when get IP address from host in proxy mode
- ip_from_hostname() is not thread safe
- use global lock mechanism
2021-02-10 18:41:01 +01:00
dist regen archive 2021-02-05 03:39:41 +01:00
lib Race condition when get IP address from host in proxy mode 2021-02-10 18:41:01 +01:00
.drone.yml Update .drone.yml 2021-01-27 19:58:14 +01:00
.gitignore add config files 2019-11-13 14:22:25 +01:00
.travis.yml Update .travis.yml 2019-11-20 09:00:41 +01:00
ant-d add service file 2020-08-08 20:35:21 +02:00
ant-logo.png fix logo 2016-12-07 13:14:02 +01:00
antd-config.ini remove reverse proxy, it should be handled by the plugin 2021-01-23 16:20:16 +01:00
antd.service cleanup code 2020-08-19 12:26:17 +02:00
configure.ac Use blocking select to monitor ports, no need to use a thread for each port 2020-09-23 13:10:54 +02:00
http_server.c Race condition when get IP address from host in proxy mode 2021-02-10 18:41:01 +01:00
http_server.h limit header size 2020-08-27 13:31:40 +02:00
httpd.c use both readable event and timeout event 2021-02-05 03:39:41 +01:00
LICENSE the mainline http server 2015-10-22 11:39:11 +02:00
Makefile.am add service file 2020-08-08 20:35:21 +02:00
plugin_manager.c Enhance scheduler, cleanup lib 2020-08-25 16:40:24 +02:00
plugin_manager.h Enhance scheduler, cleanup lib 2020-08-25 16:40:24 +02:00
README.md Update README.md 2021-02-05 03:31:06 +01:00

Logo

ant-http

Build Status Build Status

A lightweight and portable HTTP/HTTPs web server written in C:

  • New 1.0.6b version (BETA feature): Nonblocking event driven base server with configurable number of thread pool workers
  • Initial goal is for embedded Linux, but can be used as general purpose web server.
  • Support SSL via open SSL, database via Sqlite 3, web socket integrated
  • It is also extensible via its extension mechanism that allows to extends the server capability.
  • Page compression with gzip, deflate

Plugins:

Build from source

build dep

  • git
  • make
  • build-essential

server dependencies

  • libssl-dev (expecting openssl v1.1.1d, only support TLSv1.2 and TLSv1.3)
  • libsqlite3-dev
  • zlib-dev

build

When all dependencies are installed, the build can be done with a few single command lines:

mkdir antd
cd antd
# Replace x.x.x by the version number
# build without plugin
wget -O- https://get.bitdojo.dev/antd | bash -s "x.x.x"

# or from the distribution tarball
tar xvzf antd-x.x.x.tar.gz
cd antd-x.x.x
./configure --prefix=/usr --enable-debug=yes
make
sudo make install

Generate distribution

libtoolize
aclocal
autoconf
automake --add-missing
make distcheck

To do

  • remove static strings, replace it by configurations