Skip to content
  • Guido Trotter's avatar
    Fix IgnoreSignals on socket.error · 14aeab22
    Guido Trotter authored
    Some confusion arose handling EINTR on this function: in python 2.6
    socket.error is an IOError, and thus:
      - It's an EnvironmentError
      - It has an .errno member
    In 2.4 and 2.5 it's not, and so its errno variable must be extracted
    from the args tuple. This patch fixes both the function, and the
    This is a cherry-pick of master commit
     with the portions not relevant
    to 2.1 removed (changes to the RetryOnSignals function).
    Signed-off-by: default avatarGuido Trotter <>
    Reviewed-by: default avatarIustin Pop <>