1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-26 20:57:43 +02:00

add timeout for accepting tls connections (#393)

Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
fakeshadow
2021-11-16 08:22:24 +08:00
committed by GitHub
parent ce8ec15eaa
commit 7e7df2f931
10 changed files with 382 additions and 50 deletions

View File

@ -26,7 +26,7 @@ impl Counter {
CounterGuard::new(self.0.clone())
}
/// Notify current task and return true if counter is at capacity.
/// Returns true if counter is below capacity. Otherwise, register to wake task when it is.
pub fn available(&self, cx: &mut task::Context<'_>) -> bool {
self.0.available(cx)
}