-
Notifications
You must be signed in to change notification settings - Fork 21
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
Freezing in go routine #21
Comments
Check if it's sill reproducible with the current version, my PR changed how stuff get's handled. |
I have managed to reproduce the issue as well (with the latest commit @irgendwr). For me, the issue comes from here: Pushing to
|
👍 But why does it freezes only while executed in a go routine ? |
Check if this changes anything: irgendwr@2516d10 |
I'll test it out today, it'll probably work. But I think a better way to tackle this is to fix I fixed it on my end by doing: if err == ts3Lib.ErrTimeout || err == ts3Lib.ErrNotConnected {
conn.Timeout()
} else if netErr, ok := err.(net.Error); ok && netErr.Timeout() {
conn.Timeout()
} You can apply the |
It was likely freezing because the client was reading two responses (because no mutex was used) and then waiting for the response it already received until the deadline is reached.
client, err := NewClient(addr, Timeout(time.Millisecond*200))
I'm not a maintainer btw, I have no permissions ^^ |
The program hangs when this api in repeatedly used in a go routine. See following code :
The text was updated successfully, but these errors were encountered: