Skip to content

Commit

Permalink
SessionChannel: add another CoEnqueueSpawner() call for shell requests
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Jul 4, 2024
1 parent 0190c7d commit f53716c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SessionChannel.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ SessionChannel::OnRequest(std::string_view request_type,

co_return Exec(command.c_str());
} else if (request_type == "shell"sv) {
/* throttle if the spawner is under pressure */
co_await CoEnqueueSpawner(c.GetSpawnService());

co_return Exec(nullptr);
} else if (request_type == "subsystem"sv) {
SSH::Deserializer d{type_specific};
Expand Down

0 comments on commit f53716c

Please sign in to comment.