Skip to content

Add reply callback timeouts#114

Open
mephillips-durham wants to merge 4 commits intoc-jo:mainfrom
mephillips-durham:add-reply-callback-timeouts
Open

Add reply callback timeouts#114
mephillips-durham wants to merge 4 commits intoc-jo:mainfrom
mephillips-durham:add-reply-callback-timeouts

Conversation

@mephillips-durham
Copy link
Contributor

Note: builds on #107

This change allows the developer to define how many seconds should pass before the reply callback should be called in the case of no reply and no bounce being received. When awaiting a reply to a recorded message, it is not always appropriate to alert the callback as soon as we get a null Wimp poll, because it is possible that the recipient of the message has acknowledged our message (to prevent a bounce) but is doing some background work before replying.

The timeout defaults to 0 seconds, to match the previous behaviour. It can be set to an appropriate number of seconds (or fractions of seconds) according to what is reasonable for the potential background processing. Or the reply_timeout can be set to None to wait indefinitely. In this situation it is possible that the reply_callback object will never be called or cleaned up.

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.

1 participant