face: drop WebSocket message if the size is larger than maximum NDN packet size
Change-Id: I8e2bd81bbd0d4ba3598ab7c16a3125189b38ca4f refs: #2081
This commit is contained in:
1 parent
1f30aac8a2
commit
6990e4c7b8
2 files changed
+15
-4
No files matched your search
@@ -246,9 +246,14 @@ BOOST_FIXTURE_TEST_CASE(EndToEnd4, EndToEndFixture)
|
||||
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);
|
||||
|
||||
Reference in new issue
Block a user