Adds support for keep-alive connections to webserver

git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5178 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-09-22 20:36:36 +00:00
parent 45da426c19
commit c9bb9dd995
4 changed files with 86 additions and 13 deletions
+3
View File
@@ -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;