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

rfc: require programmer to implement network failure handling #1853

Merged
merged 1 commit into from
May 3, 2017

Conversation

kcrimson
Copy link
Contributor

This is second attempt to this PR.

@SeanTAllen
Copy link
Member

SeanTAllen commented Apr 22, 2017

@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:

Prevent Pony users from creating "silent failure" scenarios with their network code. 
TCPConnectionNotify, UDPNotify and TCPListenNotify will all, by default, 
silently eat connection failures.

…enarios with their network code.

TCPConnectionNotify, UDPNotify and TCPListenNotify will all, by default, silently eat
connection failures.
@kcrimson
Copy link
Contributor Author

@SeanTAllen comments updated

fun ref connect_failed(conn: TCPConnection ref) =>
_h.fail_action("receiver connect failed")


Copy link
Member

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,
Copy link
Member

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,
Copy link
Member

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,
Copy link
Member

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.

@SeanTAllen
Copy link
Member

thanks @kcrimson

SeanTAllen added a commit that referenced this pull request May 4, 2017
SeanTAllen added a commit that referenced this pull request May 6, 2017
PR #1853 changed `TCPConnectionNotify` not `TCPConnection`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants