Add http timeouts to replication, replicate after optimize
5.0.2