add socket.timeout to external_ip exceptions catch
Merge pull request #9709 from makinacorpus/fix_to

add socket.timeout to external_ip exceptions catch