diff options
author | Madhusudan Mathihalli <madhum@apache.org> | 2004-02-28 01:45:26 +0100 |
---|---|---|
committer | Madhusudan Mathihalli <madhum@apache.org> | 2004-02-28 01:45:26 +0100 |
commit | 48c38a4533cc942ecd66ebaa56570b14fe963ca3 (patch) | |
tree | ffaa0569a9b19e560846308e2cefe5e85dad2cd7 /include/http_connection.h | |
parent | New file for defining the End Of Connection (EOC) bucket type. (diff) | |
download | apache2-48c38a4533cc942ecd66ebaa56570b14fe963ca3.tar.xz apache2-48c38a4533cc942ecd66ebaa56570b14fe963ca3.zip |
Send the 'Close Alert' message to the peer upon closing a SSL session. This
required creating a new EOC (End-Of-Connection) bucket type to notify mod_ssl
that the connection is about to be closed.
Reviewed by: Joe Orton, Justin Erenkrantz
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102793 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/http_connection.h')
-rw-r--r-- | include/http_connection.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/http_connection.h b/include/http_connection.h index 1550fe385e..75d614f372 100644 --- a/include/http_connection.h +++ b/include/http_connection.h @@ -103,6 +103,34 @@ AP_DECLARE_HOOK(int,pre_connection,(conn_rec *c, void *csd)) */ AP_DECLARE_HOOK(int,process_connection,(conn_rec *c)) +/* End Of Connection (EOC) bucket */ + +AP_DECLARE_DATA extern const apr_bucket_type_t ap_bucket_type_eoc; + +/** + * Determine if a bucket is an End Of Connection (EOC) bucket + * @param e The bucket to inspect + * @return true or false + */ +#define AP_BUCKET_IS_EOC(e) (e->type == &ap_bucket_type_eoc) + +/** + * Make the bucket passed in an End Of Connection (EOC) bucket + * @param b The bucket to make into an EOC bucket + * @return The new bucket, or NULL if allocation failed + * @deffunc apr_bucket *ap_bucket_eoc_make(apr_bucket *b) + */ +AP_DECLARE(apr_bucket *) ap_bucket_eoc_make(apr_bucket *b); + +/** + * Create a bucket referring to an End Of Connection (EOC). This indicates + * that the connection will be closed. + * @param list The freelist from which this bucket should be allocated + * @return The new bucket, or NULL if allocation failed + * @deffunc apr_bucket *ap_bucket_eoc_create(apr_bucket_alloc_t *list) + */ +AP_DECLARE(apr_bucket *) ap_bucket_eoc_create(apr_bucket_alloc_t *list); + #ifdef __cplusplus } #endif |