Close

Timeout

A project log for micro HTTP server in C

Connect your browser to your smart devices, using a minimalist HTTP compliant server written in POSIX/C

Yann Guidon / YGDESYann Guidon / YGDES 03/19/2017 at 00:460 Comments

The server works rather well but there are flaws. In particular, there is no timeout, a client can block the server simply by opening a TCP connection...

I had started the implementation of a timeout system but it is far from operational, as I tried to solve inter-programs communication issues...


The server function is called periodically, at an unknown frequency. The caller/main function must call the server with one parameter that is set, every second, so the server can update its internal counters.

Discussions