Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Proper error handling when sending XMPP message #39

Open
jedlau opened this issue Jul 7, 2016 · 0 comments
Open

Proper error handling when sending XMPP message #39

jedlau opened this issue Jul 7, 2016 · 0 comments

Comments

@jedlau
Copy link

jedlau commented Jul 7, 2016

Recently, SendXmpp() started failing for me with the following error:

write tcp <IP>:<port>-><IP>:<port>: write: connection timed out

Restarting the Go process that called SendXmpp() makes this error go away, and push notifications start working again. But of course, restarting the Go process isn't ideal. Is there something I can do explicitly to handle this kind of error? For instance, is there a way to close the current XmppClient and retry sending the message, so that the retry instantiates a new XmppClient and opens a new connection?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant