Browse Source

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
svn/tags/lighttpd-1.4.11
Jan Kneschke 16 years ago
parent
commit
7096a842b8
  1. 8
      src/mod_status.c

8
src/mod_status.c

@ -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…
Cancel
Save