a better solution would be to check if ECONNRESET is available on the current platform using errno.errorcode.keys()