Skip to content

add server ping every 120s for connection keepalive - #5

Open
themgt wants to merge 1 commit into
hedwig-im:masterfrom
themgt:master
Open

add server ping every 120s for connection keepalive#5
themgt wants to merge 1 commit into
hedwig-im:masterfrom
themgt:master

Conversation

@themgt

@themgt themgt commented Mar 15, 2017

Copy link
Copy Markdown

I ported this code from https://github.com/jwarlander/hedwig_hipchat/blob/1f9213b8b19466da2b0741a616da3399a79af47b/lib/hedwig_hipchat.ex

not sure if it should be enabled for everyone, but was necessary in our case to avoid disconnect/reconnect every every 5 min (believe the server is openfire)

@bossyang

bossyang commented Oct 5, 2017

Copy link
Copy Markdown

My situation is even worse. The hedwig bot disconnect/reconnect every 1 min.

Openfire 4.1.5

from Spark chat window:

*** JBOT went offline at 9:00 PM
*** JBOT is online at 9:00 PM
*** JBOT went offline at 9:01 PM
*** JBOT is online at 9:01 PM
*** JBOT went offline at 9:02 PM
*** JBOT is online at 9:02 PM
*** JBOT went offline at 9:03 PM
*** JBOT is online at 9:03 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants