Connection could also be rate limited in some way. You'd perhaps do better putting some code up other than have us make random guesses... :-)
If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)