commit | bf636d3088e39e392517117e4e5ed4e22f8f7e34 | [log] [tgz] |
---|---|---|
author | Tony Sun <tony.sun@cloudant.com> | Mon Jun 27 18:54:43 2016 -0700 |
committer | Robert Newson <rnewson@apache.org> | Mon Jul 18 10:28:17 2016 +0100 |
tree | f96e732365ce14cdac490029043a3dd25209e04e | |
parent | 8283a30c1406b083a68835a27fe1d4a41e124e9e [diff] |
Check if worker is alive for clean_mailbox When a connection:close header is sent from the server, we handle it by calling ibrowse:stop on the worker and release it from the worker pool. But our clean_mailbox tries to clean the mailbox of this worker when it's already dead, leading to a timeout that crashes the changes_reader process and subsequently the replicator process. So we check to ensure that the Worker is still alive before we call ibrowse:stream_next. BugzId:69053