summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2007-11-18 13:33:00 -0500
committerDwight <dmerriman@gmail.com>2007-11-18 13:33:00 -0500
commita07fb60cd482a217a57ab72fc7c52f8732273efd (patch)
tree03186c4f0926f6c5594a002ac99043deec57f74f /util
parentee3f6e3c3cdef6d3bf14b1315c60f7137fa09f22 (diff)
downloadmongo-a07fb60cd482a217a57ab72fc7c52f8732273efd.tar.gz
bugs
readable output
Diffstat (limited to 'util')
-rw-r--r--util/sock.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/sock.h b/util/sock.h
index 80bac23c3bd..7b431ff8562 100644
--- a/util/sock.h
+++ b/util/sock.h
@@ -4,6 +4,7 @@
#include <stdio.h>
#include <sstream>
+#include "goodies.h"
#if defined(_WIN32)
#include <winsock2.h>
@@ -70,8 +71,9 @@ inline int UDPConnection::recvfrom(char *buf, int len, SockAddr& sender) {
}
inline int UDPConnection::sendto(char *buf, int len, const SockAddr& EndPoint) {
- if( rand() < (RAND_MAX>>4) ) {
- cout << "TEST: NOT SENDING PACKET" << endl;
+ if( 0 && rand() < (RAND_MAX>>4) ) {
+ cout << " NOTSENT ";
+ // cout << curTimeMillis() << " .TEST: NOT SENDING PACKET" << endl;
return 0;
}
return ::sendto(sock, buf, len, 0, (sockaddr *) &EndPoint.sa, EndPoint.addressSize);