Skip to content
Snippets Groups Projects
  • Joshua C. Colp's avatar
    68bcf4c4
    websocket / aeap: Handle poll() interruptions better. · 68bcf4c4
    Joshua C. Colp authored
    A sporadic test failure was happening when executing the AEAP
    Websocket transport tests. It was originally thought this was
    due to things not getting cleaned up fast enough, but upon further
    investigation I determined the underlying cause was poll()
    getting interrupted and this not being handled in all places.
    
    This change adds EINTR and EAGAIN handling to the Websocket
    client connect code as well as the AEAP Websocket transport code.
    If either occur then the code will just go back to waiting
    for data.
    
    The originally disabled failure test case has also been
    re-enabled.
    
    ASTERISK-30099
    
    Change-Id: I1711a331ecf5d35cd542911dc6aaa9acf1e172ad
    68bcf4c4
    History
    websocket / aeap: Handle poll() interruptions better.
    Joshua C. Colp authored
    A sporadic test failure was happening when executing the AEAP
    Websocket transport tests. It was originally thought this was
    due to things not getting cleaned up fast enough, but upon further
    investigation I determined the underlying cause was poll()
    getting interrupted and this not being handled in all places.
    
    This change adds EINTR and EAGAIN handling to the Websocket
    client connect code as well as the AEAP Websocket transport code.
    If either occur then the code will just go back to waiting
    for data.
    
    The originally disabled failure test case has also been
    re-enabled.
    
    ASTERISK-30099
    
    Change-Id: I1711a331ecf5d35cd542911dc6aaa9acf1e172ad