minor: Change timeout to 5s
This commit is contained in:
parent
ba20589ec9
commit
1eda645f89
1 changed files with 1 additions and 1 deletions
|
|
@ -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)| {
|
||||
|
|
|
|||
Loading…
Reference in a new issue