You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running LDAP as a long-running service, after some time I get my error logs filled with the following errors:
tls: failed to send closeNotify alert (but connection was closed anyway): write tcp <local IP address>:63427-><ip address of ldap server>:3269: wsasend: An existing connection was forcibly closed by the remote host.
The LDAP functions keep working without any issue, it's just a matter of logs filling up.
If it's an important piece of information, the LDAP server address is a network load balanced address, and there are also firewalls (that of course let the LDAP connections through but might be picky when it comes to connection kept alive for long time).
The text was updated successfully, but these errors were encountered:
I don't think this is a library specific problem. I've been running a LDAP proxy using this lib which keeps a pool of open connections for as long as possible open for faster queries. I only got connection error messages when the directory server closed it on their end or if I lost my internet connection.
Is there at least a way to stop this from filling up error logs? It is not going through the logging I have set up, and the error is not getting reported up the stack to any error I check for. I don't mind error itself, the application keeps on chugging, it's just the logs that bother me.
This depends on how you implemented error logging. The simpliest version would be to check the error message:
import (
"fmt""strings"
)
funcmain() {
err:=fmt.Errorf("tls: failed to send closeNotify alert (but connection was closed anyway): write tcp <local IP address>:63427-><ip address of ldap server>:3269: wsasend: An existing connection was forcibly closed by the remote host.")
fmt.Println(strings.HasSuffix(err.Error(), "An existing connection was forcibly closed by the remote host."))
}
+ In the latest PR (which isn't in a release yet) you can configure a logger: #366
Hello,
Running LDAP as a long-running service, after some time I get my error logs filled with the following errors:
tls: failed to send closeNotify alert (but connection was closed anyway): write tcp <local IP address>:63427-><ip address of ldap server>:3269: wsasend: An existing connection was forcibly closed by the remote host.
The LDAP functions keep working without any issue, it's just a matter of logs filling up.
If it's an important piece of information, the LDAP server address is a network load balanced address, and there are also firewalls (that of course let the LDAP connections through but might be picky when it comes to connection kept alive for long time).
The text was updated successfully, but these errors were encountered: