[Fix] Enhance DP Attention for IPv6 Compatibility (#4937)
This commit is contained in:
@@ -942,6 +942,8 @@ def get_zmq_socket(
|
||||
buf_size = -1
|
||||
|
||||
socket = context.socket(socket_type)
|
||||
if endpoint.find("[") != -1:
|
||||
socket.setsockopt(zmq.IPV6, 1)
|
||||
|
||||
def set_send_opt():
|
||||
socket.setsockopt(zmq.SNDHWM, 0)
|
||||
|
||||
Reference in New Issue
Block a user