face: drop WebSocket message if the size is larger than maximum NDN packet size
Change-Id: I8e2bd81bbd0d4ba3598ab7c16a3125189b38ca4f
refs: #2081
diff --git a/tests/daemon/face/websocket.cpp b/tests/daemon/face/websocket.cpp
index 65f0124..fa93b6a 100644
--- a/tests/daemon/face/websocket.cpp
+++ b/tests/daemon/face/websocket.cpp
@@ -246,9 +246,14 @@
shared_ptr<Interest> interest2 = makeInterest("ndn:/QWiIMfj5sL");
shared_ptr<Data> data2 = makeData("ndn:/XNBV796f");
+ std::string bigName("ndn:/");
+ bigName.append(9000, 'a');
+ shared_ptr<Interest> bigInterest = makeInterest(bigName);
+
client1_sendInterest(*interest1);
client1_sendInterest(*interest1);
client1_sendInterest(*interest1);
+ client1_sendInterest(*bigInterest); // This one should be ignored by face1
face1->sendData (*data1);
face1->sendInterest (*interest2);
client1_sendData (*data2);