Skip to content

Commit

Permalink
FEAT-modin-project#1821: Try making a faster connection
Browse files Browse the repository at this point in the history
Signed-off-by: Vasilij Litvinov <vasilij.n.litvinov@intel.com>
  • Loading branch information
vnlitvinov committed Jul 28, 2020
1 parent 35f06f7 commit 3008671
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modin/experimental/cloud/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@ def __try_connect(self):
from .rpyc_proxy import WrappingService

try:
self.__connection = rpyc.connect(
"127.0.0.1",
self.rpyc_port,
stream = rpyc.SocketStream.connect(
host="127.0.0.1", port=self.rpyc_port, nodelay=True, keepalive=True
)
self.__connection = rpyc.connect_stream(
stream,
WrappingService,
keepalive=True,
config={"sync_request_timeout": RPYC_REQUEST_TIMEOUT},
)
except (ConnectionRefusedError, EOFError):
Expand Down

0 comments on commit 3008671

Please sign in to comment.