summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-05-07 20:14:50 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2019-05-07 20:14:50 -0400
commit003fd0f8c38cb537689e614337d636686bab707c (patch)
tree3dad0d6ceb62082d72a42f6cbc9f1450a7facb90
parentb0ae5fcbcd3c1ca707fce941eb3266eb56aa57cb (diff)
downloadlighttpd1.4-003fd0f8c38cb537689e614337d636686bab707c.tar.gz
lighttpd1.4-003fd0f8c38cb537689e614337d636686bab707c.zip
[core] store log_state_handling flag on stack
-rw-r--r--src/connections.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/connections.c b/src/connections.c
index 696b58a6..7cc73007 100644
--- a/src/connections.c
+++ b/src/connections.c
@@ -1232,8 +1232,9 @@ static int connection_handle_request(server *srv, connection *con) {
int connection_state_machine(server *srv, connection *con) {
connection_state_t ostate;
int r;
+ const int log_state_handling = srv->srvconf.log_state_handling;
- if (srv->srvconf.log_state_handling) {
+ if (log_state_handling) {
log_error_write(srv, __FILE__, __LINE__, "sds",
"state at enter",
con->fd,
@@ -1241,7 +1242,7 @@ int connection_state_machine(server *srv, connection *con) {
}
do {
- if (srv->srvconf.log_state_handling) {
+ if (log_state_handling) {
log_error_write(srv, __FILE__, __LINE__, "sds",
"state for fd", con->fd, connection_get_state(con->state));
}
@@ -1310,7 +1311,7 @@ int connection_state_machine(server *srv, connection *con) {
}
} while (ostate != con->state);
- if (srv->srvconf.log_state_handling) {
+ if (log_state_handling) {
log_error_write(srv, __FILE__, __LINE__, "sds",
"state at exit:",
con->fd,