Fix the connection refused error part of issue 3419, use errno module instead of a static list of possible connection refused messages.
Fix the connection refused error part of issue 3419, use errno module instead of a static list of possible connection refused messages.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator