Code Monkey home page Code Monkey logo

Comments (19)

1stvamp avatar 1stvamp commented on July 30, 2024

Now that's odd, in init I set the PING_FREQUENCY attribute to 60 which jabberbot should use to ping Hipchat's xmpp server every 60 seconds, so either there's a bug in jabberbot's pinging, or perhaps Hipchat's ponging.

Cheers, I'll look into it.

from hippybot.

treystout avatar treystout commented on July 30, 2024

if it's any help, these are my versions:
Ubuntu 11.04 x64
python 2.7.1 (system default)
python-xmpp 0.4.1-cvs20080505.2 (installed via apt-get)
jabberbot 0.14 (installed via pip)
hippybot f39eeed

from hippybot.

1stvamp avatar 1stvamp commented on July 30, 2024

@treystout I have exactly the same OS/versions and I'm unable to reproduce, could you retest with the latest HEAD (b15aea0 at time of posting)

from hippybot.

1stvamp avatar 1stvamp commented on July 30, 2024

I still can't replicate this on HEAD so I'm going to close for now, please feel free to re-open if still an issue.

from hippybot.

mwarkentin avatar mwarkentin commented on July 30, 2024

This is happening for me in OSX (10.7.2) as well.

hippybot==1.2.0
xmpppy==0.5.0rc1
jabberbot==0.14

from hippybot.

1stvamp avatar 1stvamp commented on July 30, 2024

I periodically encounter this issue myself, I'm going to bring this up with HipChat as the Jabber backend doesn't seem to be responding to an XMPP ping.

from hippybot.

mwarkentin avatar mwarkentin commented on July 30, 2024

Awesome.. hope they can fix it.

Thanks!

from hippybot.

powdahound avatar powdahound commented on July 30, 2024

Hi - Garret from HipChat here. Any data sent over the connection counts as a keepalive to us so as long as we've received something in the last 150s your connection won't get dropped. I'm assuming jabberbot's ping logic is to blame (or isn't actually being run properly).

FWIW - our clients send a single space character as a keepalive to cut down on bandwidth although we also support client-to-server XMPP ping (XEP-019) for times when a pong is helpful.

from hippybot.

1stvamp avatar 1stvamp commented on July 30, 2024

@powdahound cheers Garret, I'll look into placing my own single-space message in the event loop.

from hippybot.

1stvamp avatar 1stvamp commented on July 30, 2024

@mwarkentin could you give 5bd399f a go?

I've had my own instance connected overnight, over long periods of inactivity (both by it and other users) without issue.

from hippybot.

mwarkentin avatar mwarkentin commented on July 30, 2024

How do I install a specific commit? I installed with pip.

Sent from my iPhone

On 2011-10-26, at 6:52 AM, Wesley [email protected] wrote:

@mwarkentin could you give 5bd399f a go?

I've had my own instance connected overnight, over long periods of inactivity (both by it and other users) without issue.

Reply to this email directly or view it on GitHub:
#2 (comment)

from hippybot.

1stvamp avatar 1stvamp commented on July 30, 2024

pip install https://github.com/1stvamp/hippybot/tarball/master#egg=hippybot should install it via github

from hippybot.

1stvamp avatar 1stvamp commented on July 30, 2024

Not heard anything else on this and not ran into the issue myself, so closing.

from hippybot.

namlol avatar namlol commented on July 30, 2024

I updated to master but the problem still persisted. And, by the way, the update is broken due to symlink to src/daemon.py not created.

from hippybot.

namlol avatar namlol commented on July 30, 2024

Apparently the problem is with JabberBot's handling of its private __lastping variable. It resets this variable when it receives a packet from the server. I suppose this might be reasonable with other jabberd but, as explained by @powdahound, Hipchat only counts the packets that are sent from client, not packets that Hipchat itself has sent. So there might be times when the if statement will fail because time.time() - self.__JabberBot_lastping is less than PING_FREQUENCY.

I suggest another variable be used to track last send_message call. Or JabberBot be modified to track packet sending instead of receiving.

from hippybot.

Afterglow avatar Afterglow commented on July 30, 2024

I can confirm what namlol has to say, I inserted some prints around the _idle_ping function and you can see the _JabberBot__lastping counter resetting periodically. I suppose whether you experience this bug probably depends on how busy your hipchat server is.

from hippybot.

namlol avatar namlol commented on July 30, 2024

Jabberbot itself has fixed this issue. See: http://sourceforge.net/p/pythonjabberbot/code/ci/31f6df3a5ec41af93d9c2e432c19f64973257d1e/

from hippybot.

1stvamp avatar 1stvamp commented on July 30, 2024

Excellent news about it being fixed upstream in jabberbot, sorry I
haven't been much use with this issue - lots of life getting in the
way.

I'll close this issue when jabberbot have released to pypi so I can
bump the minimum version in requirements.txt

On 10 Feb 2012, at 08:56 PM, namlol
[email protected]
wrote:

Jabberbot itself has fixed this issue. See: http://sourceforge.net/p/pythonjabberbot/code/ci/31f6df3a5ec41af93d9c2e432c19f64973257d1e/


Reply to this email directly or view it on GitHub:
#2 (comment)

from hippybot.

1stvamp avatar 1stvamp commented on July 30, 2024

Fixed in upstream and I've bumped the minimum requirement of jabberbot to 0.15 and published new hippybot release => 1.2.3

from hippybot.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.