mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
Remove the gRPC code-mode open session limit (#38630)
## What changed Allow the gRPC code-mode host to register more than `MAX_IN_FLIGHT_REQUESTS` open sessions. Existing limits on in-flight requests, control requests, and active cells remain unchanged. GitOrigin-RevId: 126c5088868e7783f8592f3f9250f5c8573df51f
This commit is contained in:
committed by
copyberry
parent
baab1705c6
commit
6595071e65
@@ -125,11 +125,6 @@ impl GrpcHostState {
|
||||
}))
|
||||
.map_err(|_| Status::internal("failed to publish the opened code-mode session"))?;
|
||||
let mut sessions = self.sessions.lock().unwrap_or_else(PoisonError::into_inner);
|
||||
if sessions.len() >= MAX_IN_FLIGHT_REQUESTS {
|
||||
return Err(Status::resource_exhausted(
|
||||
"code-mode host has too many open sessions",
|
||||
));
|
||||
}
|
||||
sessions.insert(id, Arc::clone(&session));
|
||||
drop(sessions);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user