added a state field to htrd for determining if it's waiting for more feeds.

enhanced how it can determine client's half-close
changed how to compose cgi environment variables
fixed a few bugs for various edge cases.
This commit is contained in:
2012-04-13 15:21:36 +00:00
parent 3e104c1ec8
commit 05e0476f97
6 changed files with 420 additions and 232 deletions

View File

@ -97,6 +97,7 @@ struct qse_htrd_t
} fed;
qse_htre_t re;
int clean;
};
#ifdef __cplusplus

View File

@ -59,7 +59,8 @@ typedef enum qse_httpd_errnum_t qse_httpd_errnum_t;
enum qse_httpd_option_t
{
QSE_HTTPD_CGIERRTONUL = (1 << 0),
QSE_HTTPD_CGINOCLOEXEC = (1 << 1)
QSE_HTTPD_CGINOCLOEXEC = (1 << 1),
QSE_HTTPD_CGINOCHUNKED = (1 << 2)
};
typedef struct qse_httpd_stat_t qse_httpd_stat_t;