Skip to content

Conversation

@ghamlin
Copy link

@ghamlin ghamlin commented Nov 5, 2012

xmpp_graceful_stop(ctx,timeout) waits until either all connections have a send_queue_len of zero or timeout elapses. The primary motivation is to have an easy way to signal shutdown after any enqueued messages have been sent. The previous commit, adds a one line fix to decrement send_queue_len so it contains the length of the queue.

This works for my simple program, let me know if this looks correct to you.

Garick

Previously this was incremented, but not decremented.  I've corrected
the code to decrement it.  It doesn't appear to be used anywhere, but
it is helpful to implement xmpp_graceful_stop().
xmpp_graceful_stop() waits until timeout for existing enqueued data
to be sent.  This helps write applications with libstrope that wish
to verify the data the enqueued made it to the network before the
run loop exited.
Add declaration missing from strophe.h for xmpp_graceful_stop().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants