Skip to content
Snippets Groups Projects
Commit 06f9227a authored by Kevin Harwell's avatar Kevin Harwell Committed by Joshua Colp
Browse files

tcptls.c: refactor client connection to be more robust

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
parent dd6df425
No related branches found
No related tags found
1 merge request!48asterisk uplift to 18.11.2
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment