mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-05 12:24:28 +01:00
The diffusion runtime's scheduler takes its requests on a ZMQ ROUTER that unpickles what it is sent, and upstream derives that socket's address from the HTTP --host: a lane bound to an address other machines reach took requests on that channel from them too, with no key (D01 of the 2026-10-24 security review). image-sglang/scheduler-loopback.patch keeps it on 127.0.0.1 for both lanes; here the HTTP server and the scheduler run on one machine. Upstream's main pins only 0.0.0.0 and IPv6 to loopback. 0.0.0.0 stays possible for the image lane (Hasan, 2026-10-24): the proxy relays no image route, so a client elsewhere reaches the lane by its bind; the warning now says what 0.0.0.0 costs and that the channel stays on loopback. Proved on the pinned file of the box (e00930c5): before the patch the endpoint followed --host (0.0.0.0, a LAN and a tailnet address, ::, a hostname), after it is tcp://127.0.0.1 for each, replicas included. The new tests fail on the old tree (7 in test_image_lane.py, 4 in test_video_lane.py). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
944 B
Diff
18 lines
944 B
Diff
diff --git a/python/sglang/multimodal_gen/runtime/server_args/server_args.py b/python/sglang/multimodal_gen/runtime/server_args/server_args.py
|
|
index 75b683f..44b7192 100644
|
|
--- a/python/sglang/multimodal_gen/runtime/server_args/server_args.py
|
|
+++ b/python/sglang/multimodal_gen/runtime/server_args/server_args.py
|
|
@@ -3112,9 +3112,9 @@
|
|
|
|
def scheduler_endpoint_for(self, replica: int) -> str:
|
|
"""Ingress endpoint of one DP replica's driver rank."""
|
|
- scheduler_host = self.host
|
|
- if scheduler_host is None or scheduler_host == "localhost":
|
|
- scheduler_host = "127.0.0.1"
|
|
+ # dgx-spark-qwen38: the scheduler's ROUTER unpickles what it is sent, so it stays
|
|
+ # on loopback whatever --host the HTTP API is given (these lanes run on one machine).
|
|
+ scheduler_host = "127.0.0.1"
|
|
if self.scheduler_ports is not None:
|
|
port = self.scheduler_ports[replica]
|
|
else:
|