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 /server/connection.c | |
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 'server/connection.c')
-rw-r--r-- | server/connection.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/connection.c b/server/connection.c index 0f9ac746cc..07e3341878 100644 --- a/server/connection.c +++ b/server/connection.c @@ -71,8 +71,15 @@ AP_CORE_DECLARE(void) ap_flush_conn(conn_rec *c) apr_bucket *b; bb = apr_brigade_create(c->pool, c->bucket_alloc); + + /* FLUSH bucket */ b = apr_bucket_flush_create(c->bucket_alloc); APR_BRIGADE_INSERT_TAIL(bb, b); + + /* End Of Connection bucket */ + b = apr_bucket_eoc_create(c->bucket_alloc); + APR_BRIGADE_INSERT_TAIL(bb, b); + ap_pass_brigade(c->output_filters, bb); } |