Skip to content

Commit 62949d0

Browse files
committed
Tweaked LDAP / honeybee SONAR timeouts
LDAP: connect 4 sec / read 4 sec honeybee SONAR: 6 sec
1 parent e1dfdbf commit 62949d0

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

honeybee/src/sonar.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// sonar.rs
22
//
3-
// Copyright (C) 2021-2024 Minnesota Department of Transportation
3+
// Copyright (C) 2021-2026 Minnesota Department of Transportation
44
//
55
// This program is free software; you can redistribute it and/or modify
66
// it under the terms of the GNU General Public License as published by
@@ -334,7 +334,7 @@ impl Messenger {
334334
let tls_stream = connector.connect(domain, tcp_stream).await?;
335335
Ok(Messenger {
336336
tls_stream,
337-
timeout: Duration::from_secs(5),
337+
timeout: Duration::from_secs(6),
338338
rx_buf: vec![0; 32_768],
339339
offset: 0,
340340
count: 0,

src/us/mn/state/dot/sonar/SSLState.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* SONAR -- Simple Object Notification And Replication
3-
* Copyright (C) 2006-2022 Minnesota Department of Transportation
3+
* Copyright (C) 2006-2026 Minnesota Department of Transportation
44
*
55
* This program is free software; you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -61,8 +61,7 @@ static private SSLEngine createSSLEngine(SSLContext context,
6161
}
6262

6363
/** Get an array of protocol versions to enable */
64-
static private String[] getProtocols(SSLEngine engine,
65-
String regex) {
64+
static private String[] getProtocols(SSLEngine engine, String regex) {
6665
ArrayList<String> protocols = new ArrayList<String>();
6766
for (String sp: engine.getSupportedProtocols()) {
6867
if (sp.matches(regex)) {

src/us/mn/state/dot/sonar/server/LdapProvider.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* IRIS -- Intelligent Roadway Information System
3-
* Copyright (C) 2006-2024 Minnesota Department of Transportation
3+
* Copyright (C) 2006-2026 Minnesota Department of Transportation
44
*
55
* This program is free software; you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -45,8 +45,8 @@ public LdapProvider(String url) {
4545
env.put(Context.INITIAL_CONTEXT_FACTORY,
4646
"com.sun.jndi.ldap.LdapCtxFactory");
4747
env.put(Context.PROVIDER_URL, url);
48-
env.put("com.sun.jndi.ldap.connect.timeout", "5000");
49-
env.put("com.sun.jndi.ldap.read.timeout", "5000");
48+
env.put("com.sun.jndi.ldap.connect.timeout", "4000");
49+
env.put("com.sun.jndi.ldap.read.timeout", "4000");
5050
if (url.startsWith("ldaps")) {
5151
env.put(Context.SECURITY_PROTOCOL, "ssl");
5252
env.put("java.naming.ldap.factory.socket",

0 commit comments

Comments
 (0)