Skip to content
Snippets Groups Projects
  • Kevin Harwell's avatar
    06f9227a
    tcptls.c: refactor client connection to be more robust · 06f9227a
    Kevin Harwell authored
    The current TCP client connect code, blocks and does not handle EINTR
    error case.
    
    This patch makes the client socket non-blocking while connecting,
    ensures a connect does not immediately fail due to EINTR "errors",
    and adds a connect timeout option.
    
    The original client start call sets the new timeout option to
    "infinite", thus making sure old, orginal behavior is retained.
    
    ASTERISK-29746 #close
    
    Change-Id: I907571843a83e43c0742b95a64785f4411f02671
    06f9227a
    History
    tcptls.c: refactor client connection to be more robust
    Kevin Harwell authored
    The current TCP client connect code, blocks and does not handle EINTR
    error case.
    
    This patch makes the client socket non-blocking while connecting,
    ensures a connect does not immediately fail due to EINTR "errors",
    and adds a connect timeout option.
    
    The original client start call sets the new timeout option to
    "infinite", thus making sure old, orginal behavior is retained.
    
    ASTERISK-29746 #close
    
    Change-Id: I907571843a83e43c0742b95a64785f4411f02671