WIP fase 2b-3: rimozione sottosistemi solo-ChatGPT (plugin remoti, image gen, daybreak, cyber, attestation, cloud config, app/connettori) - test in corso

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-10 16:07:22 +01:00
parent 231e8cd136
commit 5afc7e9f7f
1223 changed files with 6225 additions and 113722 deletions

View File

@@ -35,12 +35,22 @@ impl StreamingSseServer {
self.requests.lock().await.clone()
}
/// Waits for `count` requests; panics after a generous bound instead of hanging the suite.
pub async fn wait_for_request_count(&self, count: usize) {
loop {
if self.requests.lock().await.len() >= count {
return;
let wait = async {
loop {
if self.requests.lock().await.len() >= count {
return;
}
self.request_notify.notified().await;
}
self.request_notify.notified().await;
};
if tokio::time::timeout(std::time::Duration::from_secs(60), wait)
.await
.is_err()
{
let received = self.requests.lock().await.len();
panic!("timed out waiting for {count} streaming requests; received {received}");
}
}