Source: http://www.math.polytechnique.fr/perso/harinck/DocEv/cours/Suites-Compact-Connexe.pdf