fix hang if mod_status is used without mod_fastcgi (fixes #439)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@916 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
abe6d62a02
commit
7096a842b8
|
@ -586,6 +586,14 @@ static handler_t mod_status_handle_server_statistics(server *srv, connection *co
|
|||
buffer *b, *m = p->module_list;
|
||||
size_t i;
|
||||
array *st = srv->status;
|
||||
|
||||
if (0 == st->used) {
|
||||
/* we have nothing to send */
|
||||
con->http_status = 204;
|
||||
con->file_finished = 1;
|
||||
|
||||
return HANDLER_FINISHED;
|
||||
}
|
||||
|
||||
b = chunkqueue_get_append_buffer(con->write_queue);
|
||||
|
||||
|
|
Loading…
Reference in New Issue