Lines Matching refs:srv
101 if (!config_plugin_values_init(srv, p, cpk, "mod_status")) in SETDEFAULTS_FUNC()
234 static void mod_status_html_rtable (request_st * const rq, const server * const srv, const unix_tim… in mod_status_html_rtable() argument
240 for (const connection *con = srv->conns; con; con = con->next) { in mod_status_html_rtable()
263 static handler_t mod_status_handle_server_status_html(server *srv, request_st * const r, plugin_dat… in mod_status_handle_server_status_html() argument
401 ts = cur_ts - srv->startup_ts; in mod_status_handle_server_status_html()
432 ts = srv->startup_ts; in mod_status_handle_server_status_html()
448 avg = (double)p->abs_requests / (cur_ts - srv->startup_ts); in mod_status_handle_server_status_html()
452 avg = (double)p->abs_traffic_out / (cur_ts - srv->startup_ts); in mod_status_handle_server_status_html()
479 buffer_append_int(b, srv->srvconf.max_conns - srv->lim_conns); in mod_status_handle_server_status_html()
483 char *s = buffer_extend(b, srv->srvconf.max_conns - srv->lim_conns in mod_status_handle_server_status_html()
484 +(srv->srvconf.max_conns - srv->lim_conns)/50); in mod_status_handle_server_status_html()
485 for (const connection *c = srv->conns; c; c = c->next) { in mod_status_handle_server_status_html()
533 mod_status_html_rtable(r, srv, cur_ts); in mod_status_handle_server_status_html()
547 static handler_t mod_status_handle_server_status_text(server *srv, request_st * const r, plugin_dat… in mod_status_handle_server_status_text() argument
558 buffer_append_int(b, log_epoch_secs - srv->startup_ts); in mod_status_handle_server_status_text()
561 buffer_append_int(b, srv->srvconf.max_conns - srv->lim_conns); in mod_status_handle_server_status_text()
564 buffer_append_int(b, srv->lim_conns); /*(could omit)*/ in mod_status_handle_server_status_text()
567 char *s = buffer_extend(b, srv->srvconf.max_conns+1); in mod_status_handle_server_status_text()
568 for (const connection *c = srv->conns; c; c = c->next) in mod_status_handle_server_status_text()
570 memset(s, '_', srv->lim_conns); /*(could omit)*/ in mod_status_handle_server_status_text()
571 s += srv->lim_conns; in mod_status_handle_server_status_text()
583 static handler_t mod_status_handle_server_status_json(server *srv, request_st * const r, plugin_dat… in mod_status_handle_server_status_json() argument
609 buffer_append_int(b, log_epoch_secs - srv->startup_ts); in mod_status_handle_server_status_json()
612 buffer_append_int(b, srv->srvconf.max_conns - srv->lim_conns); in mod_status_handle_server_status_json()
615 buffer_append_int(b, srv->lim_conns); /*(could omit)*/ in mod_status_handle_server_status_json()
680 server * const srv = r->con->srv; in mod_status_handle_server_status() local
682 mod_status_handle_server_status_text(srv, r, p); in mod_status_handle_server_status()
685 mod_status_handle_server_status_json(srv, r, p); in mod_status_handle_server_status()
687 mod_status_handle_server_status_html(srv, r, p); in mod_status_handle_server_status()
723 server * const srv = r->con->srv; in mod_status_handle_server_config() local
726 for (uint32_t i = 0; i < srv->plugins.used; ++i) { in mod_status_handle_server_config()
727 const char *name = ((plugin **)srv->plugins.ptr)[i]->name; in mod_status_handle_server_config()
768 srv->srvconf.event_handler, in mod_status_handle_server_config()
769 strlen(srv->srvconf.event_handler)); in mod_status_handle_server_config()
816 for (const connection *c = srv->conns; c; c = c->next) in TRIGGER_FUNC()