-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
panic: runtime error: send on closed channel #8
Comments
I can confirm this as well. Everything works well up until the point when Close is called in my tests. |
FWIW, It looks like someone else has this fixed in their fork: |
vanackere
pushed a commit
to vanackere/ldap
that referenced
this issue
Feb 24, 2015
Do not set conn to nil when closing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm building a web-application that uses an LDAP server for authentication.
All the server needs to do is login using the LDAP server, no authorizations are made beyond that.
When I use the library to login once, it works fine, however, on a second try, it will panic.
A very minimal example that reproduces this problem is:
Note that the constants are modified to working values for the LDAP server I am using.
The output is:
The text was updated successfully, but these errors were encountered: