Closed kornel661 closed 10 years ago
GracefulListener is subject to race condition on its open bool field. According to the documentation of standard library
GracefulListener
open bool
Multiple goroutines may invoke methods on a Listener simultaneously.
thus contending for read/write access to the open field. It seems that GracefulListener needs some kind of synchronization mechanism, e.g., a mutex.
open
Good call. Thanks for the PR.
GracefulListener
is subject to race condition on itsopen bool
field. According to the documentation of standard librarythus contending for read/write access to the
open
field. It seems thatGracefulListener
needs some kind of synchronization mechanism, e.g., a mutex.