Project

General

Profile

Actions

Feature #2261

closed

Don't use exceptions in PartialMessageStore::receiveNdnlpData

Added by Davide Pesavento over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Faces
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
2.00 h

Description

Some time ago we made Face::decodeAndDispatchInput non-throwing, now it just returns false when there's a decode error.

The same should be done with PartialMessageStore::receiveNdnlpData.


Related issues 1 (0 open1 closed)

Blocked by ndn-cxx - Bug #2552: Block::fromBuffer(ConstBufferPtr, size_t, Block&) unexpected decode errorRejected02/21/2015

Actions
Actions #1

Updated by Davide Pesavento over 9 years ago

Also, should ndnlp::ParseError inherit from tlv::Error?

Actions #2

Updated by Junxiao Shi about 9 years ago

  • Tracker changed from Task to Feature
  • Subject changed from Handle all TLV decoding exceptions in PartialMessageStore::receiveNdnlpData to Don't use exceptions in PartialMessageStore::receiveNdnlpData
  • Description updated (diff)
  • Status changed from New to In Progress
  • Start date deleted (12/02/2014)
  • Estimated time set to 2.00 h
Actions #3

Updated by Junxiao Shi about 9 years ago

  • Blocked by Bug #2552: Block::fromBuffer(ConstBufferPtr, size_t, Block&) unexpected decode error added
Actions #4

Updated by Junxiao Shi about 9 years ago

  • % Done changed from 0 to 80
Actions #5

Updated by Junxiao Shi about 9 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 80 to 100
Actions #6

Updated by Junxiao Shi about 9 years ago

  • Status changed from Code review to In Progress

Reviewer suggests an API change to use move semantics, and mentions that Block::fromBuffer should apply the same change.

I'll wait for the change in Block::fromBuffer, to avoid using the deprecated overload of that function.

Actions #7

Updated by Junxiao Shi about 9 years ago

  • Blocked by Feature #2553: Block::fromBuffer use move semantics added
Actions #8

Updated by Junxiao Shi about 9 years ago

  • Status changed from In Progress to Code review
Actions #9

Updated by Junxiao Shi about 9 years ago

  • Blocked by deleted (Feature #2553: Block::fromBuffer use move semantics)
Actions #10

Updated by Junxiao Shi about 9 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF