[Asterisk-code-review] utils socket: range of random ports searched only once (testsuite[13])

Kevin Harwell asteriskteam at digium.com
Wed Apr 25 16:54:02 CDT 2018


Kevin Harwell has uploaded a new patch set (#2). ( https://gerrit.asterisk.org/8863 )

Change subject: utils_socket: range of random ports searched only once
......................................................................

utils_socket: range of random ports searched only once

If a range (greater than 1) of random ports was asked for, and if a port in
range was not available an exception was thrown stating the port in range
was not free.

This patch makes it so the exception is caught and a new random port range is
tried again (up to "attempts" tries) before quitting.

Change-Id: I96affa9df38acf569f5d3c0965ac7b78d865455d
---
M lib/python/asterisk/utils_socket.py
1 file changed, 15 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/63/8863/2
-- 
To view, visit https://gerrit.asterisk.org/8863
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: testsuite
Gerrit-Branch: 13
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I96affa9df38acf569f5d3c0965ac7b78d865455d
Gerrit-Change-Number: 8863
Gerrit-PatchSet: 2
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180425/1a62d414/attachment.html>


More information about the asterisk-code-review mailing list