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

Akka.IO bind failed must notify bindCommander of failure #1729

Merged
merged 1 commit into from
Mar 1, 2016

Conversation

tstojecki
Copy link
Contributor

This is to align with scala's AkkaIO:
https://github.com/akka/akka/blob/ddcfb5e4d07b07ab5221175264795235cbcd2492/akka-actor/src/main/scala/akka/io/TcpListener.scala

Origin of the problem:
When running in IIS, the app pool recycle event will likely cause another Bind command that might result in:
"Only one usage of each socket address (protocol/network address/port) is normally permitted".

In that instance, as the Bind command runs in the ctor, the actor crashes without any notification to commander of the failure, so no easy way to detect the error.

@marcpiechura
Copy link
Contributor

Looks good to me 👍

marcpiechura pushed a commit that referenced this pull request Mar 1, 2016
Akka.IO bind failed must notify bindCommander of failure
@marcpiechura marcpiechura merged commit b646785 into akkadotnet:dev Mar 1, 2016
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.

None yet

3 participants