replication timeout and loop

Details

Description

When you try to do at the same time a replication in both way, it will timeout then restart after 5s. Sometimes it won't be able to recover well. Adding a sleep between 2 reps is possibly solving it but it shouldn't be needed.

Attached is a script using couchdbkit to reproduce the problem. SERVER_URI need to be changed to point to your couchdb node.