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 services on different hosts both listen on 0.0.0.0:port, xoscar.actor_ref(remote_addr:port) will return unexpected LocalActorRef. log print in context.actor_ref(address=remote_addr:port) actor_ref ActorRef(uid=b'supervisor', address='remote_addr:port') _call remote_addr:port get client remote_addr:port got LocalActorRef(uid=None, address='0.0.0.0:port'), actor_weakref=<weakref at 0x75745bcdecf0; to 'CloudSupervisorActor' at 0x75745d3ed260> fix_all_zero_ip() got LocalActorRef(uid=None, address='remote_addr:port'), actor_weakref=<weakref at 0x75745bcdecf0; to 'CloudSupervisorActor' at 0x75745d3ed260> using the returned LocalActorRef, method call intended 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