mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 15:05:11 +00:00
[ADD/WIP] Timeouts in stanza awaiting
Querying for a MUC will not take longer than 10 seconds, now.
This commit is contained in:
parent
e4c6994f61
commit
d449c8097e
4 changed files with 52 additions and 12 deletions
|
|
@ -115,8 +115,13 @@ extern void ParseeRequest(HttpServerContext *, void *);
|
|||
/* A pthread callback used for listening to a component */
|
||||
extern void * ParseeXMPPThread(void *data);
|
||||
|
||||
/* Wait for a specific stanza with an ID */
|
||||
extern XMLElement * ParseeAwaitStanza(char *identifier);
|
||||
/** Wait for any stanza with an "id" attribute of {identifier},
|
||||
* with an optional timeout in milliseconds of {ts} if it is positive.
|
||||
* --------
|
||||
* UB-If: called in the XMPP dispatcher thread itself
|
||||
* Returns: NULL | XMLElement[LA:HEAP]
|
||||
* Modifies: NONE */
|
||||
extern XMLElement * ParseeAwaitStanza(char *identifier, int64_t ts);
|
||||
|
||||
/* Finds the room a DM is associated to, from a Matrix user and a Jabber
|
||||
* ID. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue