From 292ced5c98751e36fd0c927f7e70486a78b4c60b Mon Sep 17 00:00:00 2001 From: Roland Olbricht Date: Tue, 15 May 2012 21:01:46 +0200 Subject: [PATCH] Final bugfix for dispatcher: Remove the no longer useful prolongate feature. --- src/template_db/dispatcher.cc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/template_db/dispatcher.cc b/src/template_db/dispatcher.cc index 73ce0136e..732f1b063 100644 --- a/src/template_db/dispatcher.cc +++ b/src/template_db/dispatcher.cc @@ -782,8 +782,13 @@ void Dispatcher::standby_loop(uint64 milliseconds) connection_per_pid[client_pid]->send_result(command); *(uint32*)(dispatcher_shm_ptr + 2*sizeof(uint32)) = client_pid; } - else if (command == PING) - prolongate(client_pid); +// Ping-Feature removed. The concept of unassured messages doesn't fit in the context of strict +// two-directional communication. +// else if (command == PING) +// { +// prolongate(client_pid); +// connection_per_pid[client_pid]->send_result(0); +// } } catch (File_Error e) { @@ -1170,7 +1175,9 @@ void Dispatcher_Client::purge(uint32 pid) void Dispatcher_Client::ping() { - send_message(Dispatcher::PING, "Dispatcher_Client::ping::socket"); +// Ping-Feature removed. The concept of unassured messages doesn't fit in the context of strict +// two-directional communication. +// send_message(Dispatcher::PING, "Dispatcher_Client::ping::socket"); } void Dispatcher_Client::terminate()