make AsyncServerSocket bind to same port on ipv4 and ipv6 with port=0
authorMark McDuff <mcduff@fb.com>
Thu, 22 Jan 2015 00:18:25 +0000 (16:18 -0800)
committerwoo <woo@fb.com>
Mon, 2 Feb 2015 21:12:34 +0000 (13:12 -0800)
commit9eeacede71b5094084492c2a817813007325bdb1
tree75320bfdb901d3191ad81e3434ca76f5672a9198
parentc8238d15ad6365cb1b051dc404b70992edba9401
make AsyncServerSocket bind to same port on ipv4 and ipv6 with port=0

Summary: I'm in unfamiliar territory, so shout if I'm doing something dumb.  Perhaps it's a bad assumption that if the ipv4 port is free that the ipv6 port is also free?

Test Plan: g-unittest

Reviewed By: davejwatson@fb.com

Subscribers: trunkagent, ps, bmatheny, folly-diffs@

FB internal diff: D1795120

Signature: t1:1795120:1422034693:bd315023ab6cd9e9bda12161d05dd781dc401546
folly/io/async/AsyncServerSocket.cpp
folly/io/async/test/AsyncSocketTest.cpp