Skip to content

Commit

Permalink
Fix non-local client connection problem when server listen on 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
frostyplanet committed Jul 4, 2024
1 parent 19ba1c6 commit 446e3ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/xoscar/backends/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,11 @@ async def actor_ref(self, *args, **kwargs):
)
future = await self._call(actor_ref.address, message, wait=False)
result = await self._wait(future, actor_ref.address, message)
return self._process_result_message(result)
res = self._process_result_message(result)
# When remote server listen on 0.0.0.0, ActorRef.address returned by remote will be set to 0.0.0.0,
# which will affect the following rpc interaction. We fixed it forcely.
res.address = actor_ref.address
return res

async def send(
self,
Expand Down

0 comments on commit 446e3ca

Please sign in to comment.