Skip to content

Commit b0c4483

Browse files
committed
feedback
1 parent d07d21d commit b0c4483

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/pyspark/taskcontext.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ def _load_from_socket(port, auth_secret):
110110
connection has been closed.
111111
"""
112112
(sockfile, sock) = local_connect_and_auth(port, auth_secret)
113+
# The barrier() call may block forever, so no timeout
114+
sock.settimeout(None)
113115
# Make a barrier() function call.
114116
write_int(BARRIER_FUNCTION, sockfile)
115117
sockfile.flush()

0 commit comments

Comments
 (0)