minor: Change timeout to 5s

This commit is contained in:
selfhoster selfhoster 2026-09-23 12:22:16 +02:00
commit 1eda645f89

View file

@ -101,7 +101,7 @@ impl Listener {
pub async fn accept_ldap(&self) -> Result<Option<LdapStream>, AcceptError> {
// TODO: configurable timeout
let timeout = Duration::from_millis(500);
let timeout = Duration::from_secs(5);
let res = match &self.kind {
ListenerKind::Tcp(l) => l.accept().await.map(|(stream, remote_addr)| {