aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/internal.h')
-rw-r--r--src/daemon/internal.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/daemon/internal.h b/src/daemon/internal.h
index b4e3698e..c4180d3b 100644
--- a/src/daemon/internal.h
+++ b/src/daemon/internal.h
@@ -54,6 +54,8 @@
54 54
55/** 55/**
56 * Size by which MHD usually tries to increment read/write buffers. 56 * Size by which MHD usually tries to increment read/write buffers.
57 * TODO: we should probably get rid of this magic constant and
58 * put in code to automatically determine a good value.
57 */ 59 */
58#define MHD_BUF_INC_SIZE 2048 60#define MHD_BUF_INC_SIZE 2048
59 61
@@ -294,6 +296,12 @@ struct MHD_Connection
294 socklen_t addr_len; 296 socklen_t addr_len;
295 297
296 /** 298 /**
299 * Last time this connection had any activity
300 * (reading or writing).
301 */
302 time_t last_activity;
303
304 /**
297 * Socket for this connection. Set to -1 if 305 * Socket for this connection. Set to -1 if
298 * this connection has died (daemon should clean 306 * this connection has died (daemon should clean
299 * up in that case). 307 * up in that case).
@@ -385,6 +393,12 @@ struct MHD_Daemon
385 unsigned int max_connections; 393 unsigned int max_connections;
386 394
387 /** 395 /**
396 * After how many seconds of inactivity should
397 * connections time out? Zero for no timeout.
398 */
399 unsigned int connection_timeout;
400
401 /**
388 * Daemon's options. 402 * Daemon's options.
389 */ 403 */
390 enum MHD_OPTION options; 404 enum MHD_OPTION options;