lrstanley / girc

:bomb: girc is a flexible IRC library for Go :ok_hand:
https://pkg.go.dev/github.com/lrstanley/girc
MIT License
138 stars 13 forks source link

Multiple race conditions in the code #5

Closed Wessie closed 7 years ago

Wessie commented 7 years ago

Currently running go test -race gives out at least one data race warning, I've personally identified another one in the ping/pong code that writes/reads to the struct variables without synchronization.

There might be more, since I don't know how extensive the current test code is.

lrstanley commented 7 years ago

as previously stated in irc, this is already known, and this is worth a read