cloudant/fabric — pull request #88 by davisp (2013-04-26 20:14:36+00:00)
Title: Set middleman timeout to fabric request timeout

The middleman_loop function in fabric_doc_attachments has a hard coded
ten second timeout. We think this is the cause of ten minute timeouts
seen by some customers. If the RPC workers happent to take more than ten
second to start requesting data (or if they all pause for more than ten
seconds) then the middleman loop dies which triggers the RPC worker
timeout as they wait for attachment data.

This updates the timeout to the fabric per-message timeout which is the
absolute maximum a middleman could go without seeing a message before
the coordinator would exit anyway.