Comments (4)
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 ofAvailablePresence
. It doesn't matter much in this case, but when I get around moving stuff to Twisted proper, I'll only movePresenceProtocol
and its associatedStanza
-derived classes. - Presence is being sent twice on the first connect if you are not using
twistd
, because of theclient.send('<presence/>')
. Just sending presence fromconnectionInitialized
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 fromPresenceAcceptingHandler.connectionInitialized
(be sure to up call!) or by passing a reference to that handler toEchoBotProtocol
and callavailable
from there.
from wokkel.
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.
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.
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)
- SSL/TLS Connection HOT 1
- Specifying python 3 classifiers in setup.py HOT 2
- Python 3 Python Decorator issues HOT 2
- Wokkel release HOT 4
- Error building with utf characters HOT 1
- add a __version__ (PEP 396) HOT 1
- No longer possible to use a non-TLS connection with Twisted 19.7.0+ HOT 3
- Please give me example for xmpp server and xmpp client in two files - one for client one for server.
- Wokkel is not working with lastest version of Twisted (21.02) HOT 1
- wokkel.client.XMPPClient cannot authenticate when JID has escaped characters HOT 5
- User affiliation and role are not updated when wokkel.muc.MUCClient receives available presence. HOT 3
- Ability to reconnect HOT 1
- Timeout trying to join a room, even though join apparently succeeds HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wokkel.