From 878f3f85189ad6a718d867ebb04d4383a6f6b39d Mon Sep 17 00:00:00 2001 From: Massimiliano Pinto Date: Sun, 12 May 2013 21:09:16 +0200 Subject: [PATCH] New version --- protocol_1.0/mod_skysql.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocol_1.0/mod_skysql.c b/protocol_1.0/mod_skysql.c index 560770819..adde91c00 100644 --- a/protocol_1.0/mod_skysql.c +++ b/protocol_1.0/mod_skysql.c @@ -967,6 +967,7 @@ static int skysql_process_connection(conn_rec *c) { child_stopped_reading = 0; input_read = 0; + // update status for servers-status activity update_gateway_child_status(c->sbh, SERVER_BUSY_KEEPALIVE, c, NULL, apr_psprintf(pool, "GATEWAY: MYSQL loop, DB [%s]", selected_dbname)); /////////////////////////////////////////////// @@ -1024,9 +1025,11 @@ static int skysql_process_connection(conn_rec *c) { child_stopped_reading = 1; ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, c->base_server, "SkySQL Gateway stops reading [%s]", errmsg); } + //////////////////////////////////////////////////////// // current data is copied into a pool allocated buffer //////////////////////////////////////////////////////// + query_from_client = (char *)apr_pstrmemdup(pool, data, len); query_from_client_len = len;