See https://discourse.phabricator-community.org/t/sporadic-git-cloning-hang-over-ssh/2233/. This is probably a real issue but the reproduction case is "clone 9000 times in a loop under a full moon" and the proposed patch involves "preg_match()" against English language error messages. Hopefully we can do better on both dimensions.
See also https://bugs.php.net/bug.php?id=39598 in the PHP upstream.