History

comment out data-server packet queueing until sequencing is implemented

Stephen Birarda committed 13 years ago

Commit fb39ad01 parent 4c148c61 file · +3 −3Browse files

Showing the changes to interface/src/DataServerClient.cpp (1 of 1 file). Show all

Unified · Split

interface/src/DataServerClient.cpp+3−3
@@ -50,7 +50,7 @@ void DataServerClient::putValueForKey(const QString& key, const char* value) { · 49 unmodified lines
5050 putPacket[numPacketBytes++] = '\0';
5151
5252 // add the putPacket to our vector of unconfirmed packets, will be deleted once put is confirmed
53− _unmatchedPackets.insert(std::pair<unsigned char*, int>(putPacket, numPacketBytes));
53+ // _unmatchedPackets.insert(std::pair<unsigned char*, int>(putPacket, numPacketBytes));
5454
5555 // send this put request to the data server
5656 NodeList::getInstance()->getNodeSocket()->send((sockaddr*) &DATA_SERVER_SOCKET, putPacket, numPacketBytes);
@@ -88,7 +88,7 @@ void DataServerClient::getValuesForKeysAndUserString(const QStringList& keys, co · 31 unmodified lines
8888 }
8989
9090 // add the getPacket to our vector of uncofirmed packets, will be deleted once we get a response from the nameserver
91− _unmatchedPackets.insert(std::pair<unsigned char*, int>(getPacket, numPacketBytes));
91+ // _unmatchedPackets.insert(std::pair<unsigned char*, int>(getPacket, numPacketBytes));
9292
9393 // send the get to the data server
9494 NodeList::getInstance()->getNodeSocket()->send((sockaddr*) &DATA_SERVER_SOCKET, getPacket, numPacketBytes);
@@ -151,7 +151,7 @@ void DataServerClient::processSendFromDataServer(unsigned char* packetData, int · 56 unmodified lines
151151 }
152152
153153 // remove the matched packet from our map so it isn't re-sent to the data-server
154− removeMatchedPacketFromMap(packetData, numPacketBytes);
154+ // removeMatchedPacketFromMap(packetData, numPacketBytes);
155155 }
156156
157157 void DataServerClient::processMessageFromDataServer(unsigned char* packetData, int numPacketBytes) {