aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-03-15 21:05:15 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-03-15 21:05:15 +0300
commitb8a3977d58c58ae42762aabefff8841eabeb49c1 (patch)
tree596e5270184db1538b0e63939bdc700099866ce8 /src/microhttpd/connection.c
parent4b6e4c630dc6027ee5046d3c558864d94c6758c7 (diff)
downloadlibmicrohttpd-b8a3977d58c58ae42762aabefff8841eabeb49c1.tar.gz
libmicrohttpd-b8a3977d58c58ae42762aabefff8841eabeb49c1.zip
Added ability to get connection timeout by MHD_get_connection_info().
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r--src/microhttpd/connection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 7380c662..0d55fb3c 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -3331,6 +3331,8 @@ MHD_get_connection_info (struct MHD_Connection *connection,
3331 return (const union MHD_ConnectionInfo *) &connection->socket_context; 3331 return (const union MHD_ConnectionInfo *) &connection->socket_context;
3332 case MHD_CONNECTION_INFO_CONNECTION_SUSPENDED: 3332 case MHD_CONNECTION_INFO_CONNECTION_SUSPENDED:
3333 return (const union MHD_ConnectionInfo *) &connection->suspended; 3333 return (const union MHD_ConnectionInfo *) &connection->suspended;
3334 case MHD_CONNECTION_INFO_CONNECTION_TIMEOUT:
3335 return (const union MHD_ConnectionInfo *) &connection->connection_timeout;
3334 default: 3336 default:
3335 return NULL; 3337 return NULL;
3336 }; 3338 };