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

ActorSelection can have IPV4/IPV6 mapping conflicts on Mono / POSIX #2254

Closed
Aaronontheweb opened this issue Aug 13, 2016 · 2 comments · Fixed by #2311
Closed

ActorSelection can have IPV4/IPV6 mapping conflicts on Mono / POSIX #2254

Aaronontheweb opened this issue Aug 13, 2016 · 2 comments · Fixed by #2311

Comments

@Aaronontheweb
Copy link
Member

http://stackoverflow.com/questions/38917902/akka-net-remote-between-linux-and-windows

Pretty sure this is the issue (repeating my SO answer):

The issue here appears to be that Mono is using an IPV6 address mapped to IPV4 in its bound address for some reason.

akka://TestSystem/system/transports/akkaprotocolmanager.tcp.0/akkaProtocol-tcp%3A%2F%2FTestSystem%40%5B%3A%3Affff%3A192.168.0.252%5D%3A36983-1

If you decode this URL that gets translated to

akkaProtocol-tcp://TestSystem@[::ffff:192.168.0.252]:36983-

So I think what is happening here is that outbound address Helios is supposed to parse from that is getting screwed up on the Linux side, so it attempts to connect to a mal-formed address that isn't the same as the one Windows listens on. Something platform-specific in the actor selection URI parsing code is incorrect I suspect.

@kantora
Copy link
Contributor

kantora commented Aug 16, 2016

I suppose it is connected with #2194
Mono treat any ipv4 as ipv6 and break akka addresses as well.

@Aaronontheweb
Copy link
Member Author

@kantora yep, I suspect you are correct. What I think is happening under the hood: I think despite explicitly specifying IPV4 in the configuration, Mono sockets are still using IPV6 as the address family are performing a mapping - this is not correct and not what Helios does on Windows when provided with an IPV4 address.

I'll be working on getting Linux CI up and running for Helios shortly. Just got it working for NBench a few minutes ago.

Aaronontheweb added a commit to Aaronontheweb/akka.net that referenced this issue Sep 16, 2016
@Aaronontheweb Aaronontheweb self-assigned this Sep 16, 2016
Aaronontheweb added a commit to Aaronontheweb/akka.net that referenced this issue Sep 16, 2016
Aaronontheweb added a commit to Aaronontheweb/akka.net that referenced this issue Sep 17, 2016
Aaronontheweb added a commit to Aaronontheweb/akka.net that referenced this issue Sep 19, 2016
Aaronontheweb added a commit to Aaronontheweb/akka.net that referenced this issue Sep 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants