[CRIU] [PATCH 1/2] p.haul: do not use getsockname() as a hash_name, v3
Pavel Emelyanov
xemul at parallels.com
Mon Oct 27 11:12:49 PDT 2014
On 10/27/2014 04:56 PM, Ruslan Kuprieiev wrote:
> @@ -51,12 +52,13 @@ class rpc_proxy:
> def _make_sk(self):
> sk = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> sk.connect((self._srv, rpc_port))
> - return sk
> + host = _rpc_proxy_caller(sk, RPC_CMD, "get_name")()
We don't need to call get_name() for rpc control SK.
> + return (sk, host)
>
> def open_socket(self, uname):
> - sk = self._make_sk()
> + sk, host = self._make_sk()
> c = _rpc_proxy_caller(self._rpc_sk, RPC_CMD, "pick_channel")
> - c(sk.getsockname(), uname)
> + c(host, uname)
> return sk
>
>
More information about the CRIU
mailing list