Bug #2081
Updated by Junxiao Shi about 10 years ago
Snippet to reproduce: (using NDN-JS v0.6 for browser) ``` var face = new ndn.Face({ host:'example.net', port:9696 }); var n = new ndn.Name(); for (var i = 0; i < 5000; ++i) { n.append('X'); } console.log(n.toUri()); face.expressInterest(n, function(){}, function(){}); ``` Expected: NFD either closes the face, or ignores the packet. Actual: NFD crashes with `nfd: ../daemon/face/websocket-face.cpp:102: void nfd::WebSocketFace::handleReceive(const string&): Assertion 'msg.size() `msg.size() <= MAX_NDN_PACKET_SIZE' failed.`