Skip to content

Commit 6b367b9

Browse files
committed
monitoring (3)
1 parent 9a51457 commit 6b367b9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/core/http_parse_mon.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ state_action http_handle_mon_eolwrite_initial(scache_connection* connection) {
136136

137137

138138
static state_action http_headers_response_count(scache_connection* connection, int http_template) {
139+
connection->state = 2;
139140
CONNECTION_HANDLER(connection, http_handle_mon_eolwrite_initial);
140141
connection->output_buffer = http_templates[http_template];
141142
connection->output_length = http_templates_length[http_template];
142-
connection->state = 2;
143143
return needs_more;
144144
}
145145

@@ -213,7 +213,8 @@ static inline state_action http_mon_read_requeststarturl(scache_connection* conn
213213
}
214214
} else if(n == 5 && strcmp(key, "conn") == 0){ // URL: "/conn"
215215
free(key);
216-
connection->state = 0;
216+
connection->state = 2;
217+
CONNECTION_HANDLER(connection, http_handle_mon_eolwrite_initial);
217218
return http_handle_mon_eolwrite_initial(connection);
218219
}
219220

0 commit comments

Comments
 (0)