retry SSL errors
use insert instead of << for adding to the queue