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
569b032c
"docs/vscode:/vscode.git/clone" did not exist on "a462df2ec29bbf71858575227700b8628c25cd7c"
Unverified
Commit
569b032c
authored
Apr 19, 2025
by
fzyzcjy
Committed by
GitHub
Apr 19, 2025
Browse files
[PD] Tiny fix timeout error when generate (#5545)
parent
f6a71139
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
python/sglang/srt/disaggregation/mini_lb.py
python/sglang/srt/disaggregation/mini_lb.py
+5
-1
No files found.
python/sglang/srt/disaggregation/mini_lb.py
View file @
569b032c
...
...
@@ -26,7 +26,11 @@ class MiniLoadBalancer:
self
,
modified_request
,
prefill_server
,
decode_server
)
->
ORJSONResponse
:
async
with
aiohttp
.
ClientSession
()
as
session
:
async
with
aiohttp
.
ClientSession
(
timeout
=
aiohttp
.
ClientTimeout
(
total
=
3600
)
# Add timeout for request reliability
)
as
session
:
tasks
=
[
session
.
post
(
f
"
{
prefill_server
}
/generate"
,
json
=
modified_request
),
session
.
post
(
f
"
{
decode_server
}
/generate"
,
json
=
modified_request
),
...
...
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