Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoder failure's context #2360

Merged
merged 8 commits into from
Jul 6, 2020
Merged

Decoder failure's context #2360

merged 8 commits into from
Jul 6, 2020

Conversation

coot
Copy link
Contributor

@coot coot commented Jul 6, 2020

This series of patches fixes issue #1964; For

  • DeserialiseFailure
  • ProtocolLimitFailure

we include additional context: the error constructors contain singleton for
the corresponding protocol state. Together with the ShowProxy class
& instances for all mini-protocols, this allows to log protocol name & the
state.

  • handshake: use protocol limits to impose timeouts
  • ShowProxy class
  • DecoderFailure: extended context
  • DecoderFailure: updated componets
  • updated ouroboros-consensus
  • ProtocolLimitFailure: extended context
  • ProtocolLimitFailure: updated components

@coot coot added this to the S17 2020-07-16 milestone Jul 6, 2020
@coot coot added block-fetch Issues related to block fetch component. chain-sync networking tx-submission Issues related to tx-submission protocol labels Jul 6, 2020
@coot coot requested review from dcoutts and karknu July 6, 2020 06:29
@coot coot force-pushed the coot/deserialise-failure branch 2 times, most recently from 5c2a343 to 6382597 Compare July 6, 2020 08:59
Copy link
Contributor

@karknu karknu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

coot added 8 commits July 6, 2020 17:21
This allows us to use a bearer with 10s timeout on receiving or sending
a single SDU for handshake protocol, and 30s timeout for all other
mini-protocols.
ShowProxy class exposes a single method of type `Proxy p -> String`.
The Decoderfailure is raised by `runPeerWithDriver`; this patch extends
its context to contain protocol name as well as protocol state.
Including ouroboros-network-framework and ourobors-network components.
The ProtocolLimitFailure is raised by the `runDecoderWithLimit`; This
patch extends its context to contain protocol name as well as protocol
state.
Including ouroboros-network-framework and ouroboros-network components.
@coot coot force-pushed the coot/deserialise-failure branch from 6382597 to e6c4e54 Compare July 6, 2020 15:22
@coot
Copy link
Contributor Author

coot commented Jul 6, 2020

bors merge

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jul 6, 2020

@iohk-bors iohk-bors bot merged commit 6eedc52 into master Jul 6, 2020
@iohk-bors iohk-bors bot deleted the coot/deserialise-failure branch July 6, 2020 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
block-fetch Issues related to block fetch component. chain-sync tx-submission Issues related to tx-submission protocol
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants