Project

General

Profile

Actions

Bug #2081

closed

WebSocketFace: assertion failed when packet is too large

Added by Junxiao Shi about 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Faces
Target version:
Start date:
10/20/2014
Due date:
% Done:

100%

Estimated time:
2.00 h

Description

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() <= MAX_NDN_PACKET_SIZE' failed.

Actions

Also available in: Atom PDF