Set the maximum number of HTTP connections (and thus threads) to 4 when performing pull replication. This will help prevent Out of Memory exceptions during replication with attachments.