-
-
Notifications
You must be signed in to change notification settings - Fork 418
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
rfc: require programmer to implement network failure handling #1853
Conversation
@kcrimson i havent had a chance to look at the changes in this yet. can you amend your commit comment and force push? the amended commit comment would reference the RFC by number for future reference (#23) and ideally, include the motivation:
|
…enarios with their network code. TCPConnectionNotify, UDPNotify and TCPListenNotify will all, by default, silently eat connection failures.
b84d55f
to
e5bc69d
Compare
@SeanTAllen comments updated |
fun ref connect_failed(conn: TCPConnection ref) => | ||
_h.fail_action("receiver connect failed") | ||
|
||
|
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.
extra space. can remove in post.
@@ -38,7 +41,7 @@ actor TCPListener | |||
var _max_size: USize | |||
|
|||
new create(auth: TCPListenerAuth, notify: TCPListenNotify iso, | |||
host: String = "", service: String = "0", limit: USize = 0, | |||
host: String = "", service: String = "0", limit: USize = 0, |
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.
extra space at end added. can remove in post.
@@ -54,7 +57,7 @@ actor TCPListener | |||
_notify_listening() | |||
|
|||
new ip4(auth: TCPListenerAuth, notify: TCPListenNotify iso, | |||
host: String = "", service: String = "0", limit: USize = 0, | |||
host: String = "", service: String = "0", limit: USize = 0, |
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.
extra space at end added. can remove in post.
@@ -70,7 +73,7 @@ actor TCPListener | |||
_notify_listening() | |||
|
|||
new ip6(auth: TCPListenerAuth, notify: TCPListenNotify iso, | |||
host: String = "", service: String = "0", limit: USize = 0, | |||
host: String = "", service: String = "0", limit: USize = 0, |
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.
extra space at end added. can remove in post.
thanks @kcrimson |
PR #1853 changed `TCPConnectionNotify` not `TCPConnection`
This is second attempt to this PR.