cloudant/fabric — pull request #43 by davisp (2012-04-23 22:25:29+00:00)
Title: Timeout chunked attachment uploads

Its possible that the chunked attachment writers would get lost waiting
to receive a message that never arrived. This would end up leaving an
orphaned process that would hold open database shard copies which
prevented them from being freed by delete_nicely.

This patch just inserts a ten minute time limit waiting for the next
message before it gives up and exits. Its important to note that this is
just the length of time between messages carrying data for the
attachment (which should be about 4K each) and not a time limit for the
entire upload.