summaryrefslogtreecommitdiff
path: root/grid/message.cpp
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2007-11-13 16:44:01 -0500
committerDwight <dmerriman@gmail.com>2007-11-13 16:44:01 -0500
commita1e51472252fc1ef7d6b9c7e74490cd953f43968 (patch)
tree9422cc0b1ee8c57b058c86cba21560c40256f489 /grid/message.cpp
parent19745b65d233c13d4856efd60748f07a99bafc55 (diff)
downloadmongo-a1e51472252fc1ef7d6b9c7e74490cd953f43968.tar.gz
bugs
Diffstat (limited to 'grid/message.cpp')
-rw-r--r--grid/message.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/grid/message.cpp b/grid/message.cpp
index 19aa7a467f5..a4d733ef510 100644
--- a/grid/message.cpp
+++ b/grid/message.cpp
@@ -6,6 +6,7 @@
#include "stdafx.h"
#include "message.h"
#include <time.h>
+#include "../util/goodies.h"
const int FragMax = 1480;
const int MSS = FragMax - 8;
@@ -135,7 +136,7 @@ bool MessagingPort::call(SockAddr& to, Message& toSend, Message& response) {
bool ok = recv(response);
if( !ok )
return false;
- cout << "got response: " << response.data->responseTo << endl;
+ //cout << "got response: " << response.data->responseTo << endl;
if( response.data->responseTo == toSend.data->id )
break;
cout << "warning: MessagingPort::call() wrong id, skipping. got:" << response.data->responseTo << " expect:" << toSend.data->id << endl;
@@ -164,5 +165,7 @@ void MessagingPort::say(SockAddr& to, Message& toSend, int responseTo) {
left -= l;
conn.sendto(buf, l+8, to);
f->fragmentNo++;
+
+ sleepmillis(50);
}
}