commit | 3d2b76fd951f5d0e5309425ca2687c8b10980368 | [log] [tgz] |
---|---|---|
author | Philipp Maier <pmaier@sysmocom.de> | Wed Aug 04 14:08:37 2021 +0200 |
committer | Philipp Maier <pmaier@sysmocom.de> | Mon Aug 16 16:22:31 2021 +0200 |
tree | cfddc3c6445ace9f7d19b5112d609d37779960ff | |
parent | 276a414aa3b1fb87885a738c42d7328737cb2825 [diff] |
mgcp_client: refactor function init_socket The function init_socket has an arbitrary retry count when opening the socket. After each retry the local port is incremented by one. The intention behind this is to find a useable local port in case the configured port is used by another process. The maximum number of retrys is hardcoded. The upcomming MGW pooling patch requires to set the maximum retry count. Change-Id: Ifd65511daa92fbe610f52da1c4c3b6a7c761d890 Related: SYS#5091