summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham.Dumpleton <devnull@localhost>2009-02-14 11:08:35 +0000
committerGraham.Dumpleton <devnull@localhost>2009-02-14 11:08:35 +0000
commitb12b609f89d55bba41e578ab64bfd0ea50d35de4 (patch)
tree475689c26a2d4ddbaaee641480c2ecd34da3fadc
parent8b01704a68e4dda5d1c44437dfcd94761816d914 (diff)
downloadmod_wsgi-b12b609f89d55bba41e578ab64bfd0ea50d35de4.tar.gz
Insert flush bucket to ensure that file referenced by wsgi.file_wrapper is
written to client before file descriptor is closed. See issue #132.
-rw-r--r--mod_wsgi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod_wsgi.c b/mod_wsgi.c
index 9605123..f20da60 100644
--- a/mod_wsgi.c
+++ b/mod_wsgi.c
@@ -2685,6 +2685,9 @@ static int Adapter_output_file(AdapterObject *self, apr_file_t* tmpfile,
APR_BRIGADE_INSERT_TAIL(bb, b);
+ b = apr_bucket_flush_create(r->connection->bucket_alloc);
+ APR_BRIGADE_INSERT_TAIL(bb, b);
+
b = apr_bucket_eos_create(r->connection->bucket_alloc);
APR_BRIGADE_INSERT_TAIL(bb, b);