Skip to content

Commit

Permalink
Final bugfix for dispatcher: Remove the no longer useful prolongate f…
Browse files Browse the repository at this point in the history
…eature.
  • Loading branch information
drolbr committed May 15, 2012
1 parent 96d2bb9 commit 292ced5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/template_db/dispatcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 292ced5

Please sign in to comment.