Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
3b6d539f
Unverified
Commit
3b6d539f
authored
Apr 21, 2025
by
Lucius
Committed by
GitHub
Apr 21, 2025
Browse files
[Fix] Enhance DP Attention for IPv6 Compatibility (#4937)
parent
57131dd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
python/sglang/srt/utils.py
python/sglang/srt/utils.py
+2
-0
No files found.
python/sglang/srt/utils.py
View file @
3b6d539f
...
@@ -942,6 +942,8 @@ def get_zmq_socket(
...
@@ -942,6 +942,8 @@ def get_zmq_socket(
buf_size
=
-
1
buf_size
=
-
1
socket
=
context
.
socket
(
socket_type
)
socket
=
context
.
socket
(
socket_type
)
if
endpoint
.
find
(
"["
)
!=
-
1
:
socket
.
setsockopt
(
zmq
.
IPV6
,
1
)
def
set_send_opt
():
def
set_send_opt
():
socket
.
setsockopt
(
zmq
.
SNDHWM
,
0
)
socket
.
setsockopt
(
zmq
.
SNDHWM
,
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment