Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix route problem when both service listening 0.0.0.0:port calling ea…
…ch other Two service listen on 0.0.0.0:1234, on different hosts: xoscar.actor_ref(111.111.111.111:1234) will return unexpected LocalActorRef. log print in context.actor_ref(111.111.111.111:1234) actor_ref ActorRef(uid=b'supervisor', address='111.111.111.111:1234') _call 111.111.111.111:1234 get client 111.111.111.111:1234 got LocalActorRef(uid=None, address='0.0.0.0:1234'), actor_weakref=<weakref at 0x75745bcdecf0; to 'CloudSupervisorActor' at 0x75745d3ed260> fix_all_zero_ip() got LocalActorRef(uid=None, address='111.111.111.111:1234'), actor_weakref=<weakref at 0x75745bcdecf0; to 'CloudSupervisorActor' at 0x75745d3ed260> using the returned LocalActorRef, method call intend for remote service actually sent to local service. The solution is simple, during pool initialization, do not register_local_pool if address is all zero.
- Loading branch information