SocketAddress::anyAddress should be a method
authorSean Cannella <seanc@fb.com>
Wed, 18 Mar 2015 22:57:53 +0000 (15:57 -0700)
committerNoam Lerner <noamler@fb.com>
Wed, 25 Mar 2015 22:33:34 +0000 (15:33 -0700)
commit5333a9145877c6ea78ab9a47b3cafc60c8237ece
tree2a977387bdcf03d357ec3f3b506382ad85b7ce0f
parentefecbe5fbf3cedbb7b22431a8764469d064a251f
SocketAddress::anyAddress should be a method

Summary:
Calling getaddrinfo from a static constructor is not the most
reliable thing to do. Stop doing it.

Test Plan: existing tests

Reviewed By: davejwatson@fb.com

Subscribers: dancol, mzlee, shikong, kmdent, fma, bmatheny, benyluo, ranjeeth, folly-diffs@, jsedgwick, yfeldblum

FB internal diff: D1924578

Tasks: 6534662

Signature: t1:1924578:1426718586:d73bc2f001095e66fa77fde9c027af050cc26d2a
folly/io/async/AsyncSSLSocket.h
folly/io/async/AsyncSocket.cpp
folly/io/async/AsyncSocket.h