• Nicolas George's avatar
    udp: fix non-blocking and interrupt handling. · 463705bd
    Nicolas George authored
    In non-blocking mode, lowest-level read protocols are
    supposed block only for a short amount of time to let
    retry_transfer_wrapper() check for interrupts.
    
    Also, checking the interrupt_callback in the receiving thread is
    wrong, as interrupt_callback is not guaranteed to be thread-safe
    and the job is already done by retry_transfer_wrapper(). The error
    code was also incorrect.
    
    Bug reported by Andrey Utkin.
    463705bd
udp.c 21.6 KB