Skip to content

Work on MessageReassembler#68

Merged
josesimoes merged 1 commit intonanoframework:developfrom
Eclo:work-on-MessageReassembler
Oct 25, 2017
Merged

Work on MessageReassembler#68
josesimoes merged 1 commit intonanoframework:developfrom
Eclo:work-on-MessageReassembler

Conversation

@josesimoes
Copy link
Copy Markdown
Member

Description

  • Refactor operationTimeout in ProcessAsync to ease reuse on calls bellow
  • Fix CompletePayload code that wasn't forwarding unexpected messages
  • Fix ProcessMessage that wasn't correctly validating the reply when it was originated by a request
  • Code clean-up
  • Remove Debug.WriteLine as those are not required anymore

Motivation and Context

  • Fixes potential issues with Wire Protocol message processing when there are unsolicited messages being sent from the target device.

How Has This Been Tested?

Screenshots

Types of changes

  • Improvement (non-breaking change that improves a feature, code or algorithm)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Signed-off-by: José Simões jose.simoes@eclo.solutions

- Refactor `operationTimeout` in `ProcessAsync` to ease reuse on calls bellow
- Fix `CompletePayload` code that wasn't forwarding unexpected messages
- Fix `ProcessMessage` that wasn't correctly validating the reply when it was originated by a request
- Code clean-up
- Remove `Debug.WriteLine` as those are not required anymore

Signed-off-by: José Simões <jose.simoes@eclo.solutions>
@nfbot
Copy link
Copy Markdown
Member

nfbot commented Oct 25, 2017

Hi @josesimoes,

I'm nanoFramework bot.
Thank you for your contribution!

A human will be reviewing it shortly. 😉

@josesimoes josesimoes merged commit 5776166 into nanoframework:develop Oct 25, 2017
@josesimoes josesimoes deleted the work-on-MessageReassembler branch October 25, 2017 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants