We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi!
I ran into a weird issue running this piece of code:
package main import ( "log" "github.com/smira/go-statsd" ) func main() { client := statsd.NewClient("BOOM:BOOM") if err := client.Close(); err != nil { log.Fatalf("could not close, but got error: %v", err) } log.Print("all good!") }
It hangs forever (apparently) saying:
[STATSD] 2019/05/15 18:33:38 [STATSD] Error connecting to server: dial udp: address udp/BOOM: unknown port
I would have expected Close() to return an error, maybe telling me the address is incorrect or that it cannot be resolved.
Close()
The text was updated successfully, but these errors were encountered:
confirmed, thanks for reporting!
Sorry, something went wrong.
Fix sendLoop not exiting when connection can't be established
4b89458
When `net.Dial()` fails, `sendLoop` iterates in a loop never allowing to the client to shutdown. Fixes: #19
1.3.1 is published now with the fix
Wow that was fast! Thanks a lot!
Successfully merging a pull request may close this issue.
Hi!
I ran into a weird issue running this piece of code:
It hangs forever (apparently) saying:
I would have expected
Close()
to return an error, maybe telling me the address is incorrect or that it cannot be resolved.The text was updated successfully, but these errors were encountered: