-
Notifications
You must be signed in to change notification settings - Fork 160
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
Check if conn is closed before writing to it. #504
Conversation
Codecov ReportBase: 78.06% // Head: 78.35% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #504 +/- ##
==========================================
+ Coverage 78.06% 78.35% +0.29%
==========================================
Files 36 36
Lines 4262 4265 +3
==========================================
+ Hits 3327 3342 +15
+ Misses 728 717 -11
+ Partials 207 206 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Hi @m1k1o, is it possible to write a test for the fix? |
Simplified by checking the error we receive. Reason for errors not being logged I found in this commit to be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me :) Just the commit message CI check is failing :(
@m1k1o Do you mind fixing the CI commit message check which fails? Or, are you okay if I do so for you? |
I can do it later today. But feel free to do it now if you want. |
@m1k1o I adjusted the commit messages. However, it seems like I am lacking the permissions to push the changes to your branch. :( |
@stv0g i added permissions, can you try again? |
Return ErrClosedPipe for writeTo
Add tests for read/write from/to closed connection
When connection is closed
Description
Check if connection is closed before writing anything to it.
Reference issue
Fixes #503