Git Product home page Git Product logo

Comments (4)

ralphm avatar ralphm commented on August 23, 2024

It might be that your server is configured to close idle connections after a while. Three minutes sounds really quick, though. Are you talking to a public server? If so, which one? If not, which server implementation is it? I've noticed this behavior with OpenFire servers.

A few notes on the code itself:

  • You should use AvailabilityPresence instead of AvailablePresence. It doesn't matter much in this case, but when I get around moving stuff to Twisted proper, I'll only move PresenceProtocol and its associated Stanza-derived classes.
  • Presence is being sent twice on the first connect if you are not using twistd, because of the client.send('<presence/>'). Just sending presence from connectionInitialized suffices, and also works on reconnects.
  • You might want to use PresenceProtocol.available instead of crafting the stanza itself. This could be done either by calling it from PresenceAcceptingHandler.connectionInitialized (be sure to up call!) or by passing a reference to that handler to EchoBotProtocol and call available from there.

from wokkel.

bino avatar bino commented on August 23, 2024

I have the same problem here ... right after I do dist-upgrade from lucid to maverick of my station.

The server is OpenFire, and I didn't touch anythings

Sincerely
-bino-

from wokkel.

ralphm avatar ralphm commented on August 23, 2024

bino: your mail to the twisted-jabber mailing list suggests your problem is not the same. fixfxp's script disconnects after successful connections after a longer period.

from wokkel.

ralphm avatar ralphm commented on August 23, 2024

Closing this for now, as I don't suspect this to be a bug in Wokkel and/or Twisted. Feel free to reopen if new information is available.

from wokkel.

Related Issues (14)

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.