2
0
Fork 0

move vrequest_reset() up in connection_reset() so options and addr are still valid when invoking action context cleanup callbacks

personal/stbuehler/wip
Thomas Porzelt 2008-12-10 21:13:08 +01:00
parent 52c3c2e042
commit fa52e5361b
1 changed files with 3 additions and 1 deletions

View File

@ -355,6 +355,9 @@ void connection_reset(connection *con) {
}
}
ev_io_set(&con->sock_watcher, -1, 0);
vrequest_reset(con->mainvr);
g_string_truncate(con->remote_addr_str, 0);
g_string_truncate(con->local_addr_str, 0);
con->keep_alive = TRUE;
@ -364,7 +367,6 @@ void connection_reset(connection *con) {
memcpy(con->options, con->srv->option_def_values->data, con->srv->option_def_values->len * sizeof(option_value));
vrequest_reset(con->mainvr);
http_request_parser_reset(&con->req_parser_ctx);
if (con->keep_alive_data.link) {