Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Conversation

@moghammed
Copy link

This PR fixes #329. This is a small improvement over the code changes proposed in the thread of #329, which break the server.test.

There is no test included because the error is caused by a race condition and I can't reproduce it reliably.

Comment on lines 1275 to +1281
try {
return conn.write(message.toBer(), writeCallback)
if (expect === 'unbind') {
return conn.write(message.toBer(), writeCallback)
} else {
writeCallback()
return conn.write(message.toBer())
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At a minimum we should have a comment here that explains why this code is the way it is. This would at least allow us to accept it without a test, as I know there is difficult code in this project. However, we really should be able to force the condition in our unit tests somehow.

@jsumners
Copy link
Member

👋

On February 22, 2023, we released version 3 of this library. As a result, we are closing this issue/pull request.

Please see issue #839 for more information, including how to proceed if you feel this closure is in error.

@ldapjs ldapjs locked as resolved and limited conversation to collaborators Feb 22, 2023
@jsumners jsumners closed this Feb 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Concurrent calls to client.search() failed when using "ldaps"

2 participants