LP#1268619: websocket gateway : note api changes for apache 2.4
authorBill Erickson <berick@esilibrary.com>
Tue, 6 Nov 2012 21:54:44 +0000 (16:54 -0500)
committerBill Erickson <berick@esilibrary.com>
Sun, 4 May 2014 20:10:33 +0000 (16:10 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
src/gateway/osrf_websocket_translator.c

index 2a6db5a..2e74fa1 100644 (file)
@@ -230,7 +230,8 @@ void* CALLBACK on_connect_handler(const WebSocketServer *server) {
     apr_pool_t *pool;
 
     ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, 
-        "WS connect from %s", r->connection->remote_ip);
+        "WS connect from %s", r->connection->remote_ip); 
+        //"WS connect from %s", r->connection->client_ip); // apache 2.4
 
     if (!trans) {
         if (child_init(server) != APR_SUCCESS) {
@@ -398,7 +399,8 @@ void CALLBACK on_disconnect_handler(
 
     request_rec *r = server->request(server);
     ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, 
-        "WS disconnect from %s", r->connection->remote_ip);
+        "WS disconnect from %s", r->connection->remote_ip); 
+        //"WS disconnect from %s", r->connection->client_ip); // apache 2.4
 }
 
 /**