Mercurial > libervia-backend
comparison src/core/xmpp.py @ 2497:38f472dbfcf0
core (client): set default timeout of IQ to 60 seconds
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 28 Feb 2018 18:28:39 +0100 |
parents | 0046283a285d |
children | d6de69da3dd4 |
comparison
equal
deleted
inserted
replaced
2496:769e8d9d2438 | 2497:38f472dbfcf0 |
---|---|
261 else: | 261 else: |
262 return defer.succeed(None) | 262 return defer.succeed(None) |
263 | 263 |
264 ## sending ## | 264 ## sending ## |
265 | 265 |
266 def IQ(self, type_=u'set', timeout=None): | 266 def IQ(self, type_=u'set', timeout=60): |
267 """shortcut to create an IQ element managing deferred | 267 """shortcut to create an IQ element managing deferred |
268 | 268 |
269 @param type_(unicode): IQ type ('set' or 'get') | 269 @param type_(unicode): IQ type ('set' or 'get') |
270 @param timeout(None, int): timeout in seconds | 270 @param timeout(None, int): timeout in seconds |
271 @return((D)domish.Element: result stanza | 271 @return((D)domish.Element: result stanza |