Mercurial > urweb
annotate include/urweb/queue.h @ 2071:739172204214
Introduce recv timeout controlled by '-T' option in http.c
This should prevent a DDoS attack where attacker and keeps the connection open
but send no data.
author | Sergey Mironov <grrwlf@gmail.com> |
---|---|
date | Tue, 02 Sep 2014 17:42:10 +0000 |
parents | c414850f206f |
children |
rev | line source |
---|---|
ezyang@1739 | 1 #ifndef QUEUE_H |
ezyang@1739 | 2 #define QUEUE_H |
ezyang@1739 | 3 |
ezyang@1739 | 4 int uw_dequeue(); |
ezyang@1739 | 5 void uw_enqueue(int); |
ezyang@1739 | 6 |
ezyang@1739 | 7 #endif |