From 14041d4dc7b60500de8ab760ca9e6cc55ccc524c Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 22 Sep 2012 20:36:36 +0000 Subject: Adds support for keep-alive connections to webserver git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5178 42af7a65-404d-4744-a932-0658087f49c3 --- apps/include/netutils/httpd.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/include/netutils') diff --git a/apps/include/netutils/httpd.h b/apps/include/netutils/httpd.h index 031840802..20ddff278 100644 --- a/apps/include/netutils/httpd.h +++ b/apps/include/netutils/httpd.h @@ -109,6 +109,9 @@ struct httpd_state { char ht_buffer[HTTPD_IOBUFFER_SIZE]; /* recv() buffer */ char ht_filename[HTTPD_MAX_FILENAME]; /* filename from GET command */ +#ifndef CONFIG_NETUTILS_HTTPD_KEEPALIVE_DISABLE + bool ht_keepalive; /* Connection: keep-alive */ +#endif struct httpd_fs_file ht_file; /* Fake file data to send */ int ht_sockfd; /* The socket descriptor from accept() */ char *ht_scriptptr; -- cgit v1.2.3