lpereira / lwan

Experimental, scalable, high performance HTTP server
https://lwan.ws
GNU General Public License v2.0
5.94k stars 548 forks source link

Implement timer / delay function #36

Closed lpereira closed 6 years ago

lpereira commented 10 years ago

Implement a lwan_delay(request, ms) function that will yield from the coroutine and resume it whenever that timer expires. Might need to use timerfd_create() or something else. Might also be an opportunity to investigate libev, libevent and libuv.

lpereira commented 6 years ago

Finally fixed this one with 5a145e5b4e3ab09c21d85d5a7d290a812990e66a