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

add error frame handling on frame parse and connection #1

Merged
merged 3 commits into from Jul 22, 2021

Conversation

Victornguli
Copy link
Collaborator

Patch to handle Error Frames

  • Logic to create new Error Frame if appropriate on frame.rb parse
  • Added Error Frame check on connection.rb receive_frame_bytes and a call to error_handler if defined

@@ -57,6 +57,15 @@ def dispose
close_connection(true)
end

# @param error_frame [RSocket:ErrorFrame]
def error_handler(error_frame)
Copy link
Collaborator

Choose a reason for hiding this comment

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

nitpick: verb names for methods e.g. receive_response not response_receiver. In the same vein handle_error not error_handler... but we can fix in future

@Victornguli Victornguli merged commit c599d83 into master Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants