File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,12 @@ func NewConn(conn net.Conn, isTLS bool) *Conn {
265
265
return l
266
266
}
267
267
268
- // Start initializes goroutines to read responses and process messages
268
+ // Start initialises goroutines to read replies and process messages.
269
+ //
270
+ // Deprecated: It is usually not necessary to call this function
271
+ // manually. It is public for compatibility reasons and may
272
+ // cause a race condition when processing messages.
273
+ // See: https://github.com/go-ldap/ldap/issues/356
269
274
func (l * Conn ) Start () {
270
275
go l .reader ()
271
276
go l .processMessages ()
Original file line number Diff line number Diff line change @@ -265,7 +265,12 @@ func NewConn(conn net.Conn, isTLS bool) *Conn {
265
265
return l
266
266
}
267
267
268
- // Start initializes goroutines to read responses and process messages
268
+ // Start initialises goroutines to read replies and process messages.
269
+ //
270
+ // Deprecated: It is usually not necessary to call this function
271
+ // manually. It is public for compatibility reasons and may
272
+ // cause a race condition when processing messages.
273
+ // See: https://github.com/go-ldap/ldap/issues/356
269
274
func (l * Conn ) Start () {
270
275
go l .reader ()
271
276
go l .processMessages ()
You can’t perform that action at this time.
0 commit comments