08 August 2017

Eris

System: Slackware Linux (version 14.0)
CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz
Deps: eris-master.zip, ucspi-tcp-0.88.tar.gz

Installation of N. Pickett's eris-4.4.

http://slackbuilds.org/repository/14.2/network/ucspi-tcp/

bash-4.2# installpkg ucspi-tcp-0.88-486-1_SBo.tgz

...

bash-4.2# exit

https://github.com/nealey/eris
eris-master.zip

bash-4.2#  cd eris
bash-4.2# make
awk -F : 'NR==1 {printf("const char *FNORD = \"eris/%s\";\n", $1);}' CHANGES > version.h
cc -Wall -Werror   -c -o eris.o eris.c
cc -Wall -Werror   -c -o strings.o strings.c
cc -Wall -Werror   -c -o mime.o mime.c
cc -Wall -Werror   -c -o timerfc.o timerfc.c
cc   eris.o strings.o mime.o timerfc.o   -o eris
bash-4.2#

bash-4.2# ./test.sh
HTTPD: ./eris 
CGI:   ./eris -c 
IDX:   ./eris -d 
Basic tests          .............
Options              .
Tomfoolery           .....
If-Modified-Since    ........
Directory indexing   ...
CGI                  .............
Timeouts             .
CONNECT handler      .
fnord bugs           .......
52 of 52 tests passed (0 failed).
bash-4.2# exit

[   ]



Comparison of python3 and eris.

Skeleton file to be set as a homepage in a browser.

$ cat example.html
<html>
  <head>
    <title>Example</title>
  </head>
  <body>
    <h1>Example</h1>
  </body>
</html>
$

Open in a browser tab http://localhost:8000/example.html.

$ python3 -m http.server &
[1] 2985
$ Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
$ pmap 2985 | tail -n 1
total            21924K
$ pmap 2985 | expr $(wc -l) - 2
192
$ kill 2985
[1]+ Terminated python3 -m http.server
$

# tcpserver -v -RH 0 8000 ./eris -. &
[1] 3091
# tcpserver: status: 0/40
# pmap 3091 | tail -n 1
  total             2364K
# pmap 3091 | expr $(wc -l) - 2
22
# kill 3091
[1]+  Done                    tcpserver -v -RH 0 8000 ./eris -.
#