----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/53949/#review156567 ----------------------------------------------------------- src/tests/utils.cpp (lines 96 - 97) Should we have a maximum failure limit here? Another way to get a free port is to bind the socket to `0` and get a random port. Then close the socket and return that port to the caller. - haosdent huang On Nov. 21, 2016, 6:43 p.m., Benjamin Bannier wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/53949/ > ----------------------------------------------------------- > > (Updated Nov. 21, 2016, 6:43 p.m.) > > > Review request for mesos and Alexander Rukletsov. > > > Bugs: MESOS-6618 > https://issues.apache.org/jira/browse/MESOS-6618 > > > Repository: mesos > > > Description > ------- > > Added test helper to obtain unused port. > > > Diffs > ----- > > src/tests/utils.hpp 140ebaaae43b03568ec49891635f0660cdfb4c85 > src/tests/utils.cpp eb36616f68d81d33d4bd04a7f23295e8c7558fc8 > > Diff: https://reviews.apache.org/r/53949/diff/ > > > Testing > ------- > > Tested as part of https://reviews.apache.org/r/53950/. > > > Thanks, > > Benjamin Bannier > >