JelleBouma / Johnny

Johnny is a blazingly fast HTTP server that serves files from memory
1 stars 0 forks source link

possible race conditions with timers #7

Closed JelleBouma closed 1 month ago

JelleBouma commented 2 months ago

possible race condition (in single epoll_wait return): timer expires for fd x, closes it and frees its memory fd x has input

another variation: fd x has no more input and we close it we accept a different connection on fd x timer expires for fd x, closes it and frees its memory

JelleBouma commented 1 month ago

timers are no longer used, when they are reimplemented, we will use a single timer.