[core] remove unused srv->con_* counters

master
Glenn Strauss 7 months ago
parent 2ad335f0ee
commit a6d40ce213
  1. 6
      src/base.h
  2. 4
      src/connections.c

@ -153,12 +153,6 @@ struct server {
/* buffers */
buffer *tmp_buf;
/* counters */
int con_opened;
int con_read;
int con_written;
int con_closed;
int max_fds; /* max possible fds */
int max_fds_lowat;/* low watermark */
int max_fds_hiwat;/* high watermark */

@ -158,7 +158,6 @@ static void connection_handle_shutdown(connection *con) {
plugins_call_handle_connection_shut_wr(con);
connection_reset(con);
++con->srv->con_closed;
/* close the connection */
if (con->fd >= 0
@ -190,8 +189,6 @@ static void connection_handle_response_end_state(request_st * const r, connectio
/* (even if error, connection dropped, as long as http_status is set) */
if (r->http_status) plugins_call_handle_request_done(r);
if (r->state != CON_STATE_ERROR) ++con->srv->con_written;
if (r->reqbody_length != r->reqbody_queue.bytes_in
|| r->state == CON_STATE_ERROR) {
/* request body may not have been read completely */
@ -915,7 +912,6 @@ connection *connection_accepted(server *srv, const server_socket *srv_socket, so
#if 0
log_error(srv->errh, __FILE__, __LINE__, "accepted() %d", cnt);
#endif
srv->con_opened++;
con = connections_get_new_connection(srv);

Loading…
Cancel
Save