diff options
author | Graham.Dumpleton <devnull@localhost> | 2009-02-14 11:08:35 +0000 |
---|---|---|
committer | Graham.Dumpleton <devnull@localhost> | 2009-02-14 11:08:35 +0000 |
commit | b12b609f89d55bba41e578ab64bfd0ea50d35de4 (patch) | |
tree | 475689c26a2d4ddbaaee641480c2ecd34da3fadc | |
parent | 8b01704a68e4dda5d1c44437dfcd94761816d914 (diff) | |
download | mod_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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |