commit | 2e1995a729cb8d836159444d61427d4d0ef0b45f | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Tue Oct 20 18:12:54 2015 +0100 |
committer | Narayan Kamath <narayan@google.com> | Thu Nov 12 10:51:47 2015 +0000 |
tree | 52026831c5db474485f0c722e1785150b5b9c96d | |
parent | 9f7cb9dbab95a1c94864063908d213487d17535e [diff] |
SocketChannel: set the local address after #connect.. .. even for channels that are non-blocking. Posix suggests that the socket is always bound before connect returns, even if it's non-blocking and the remote connection hasn't been established yet. This unbreaks tests that expect SocketChannel#isBound to return true after connect. (cherry picked from commit 54efdfbc7caec82e2f8030935d58522759e04000) Change-Id: Iae6bd69687048a4cf0ddbb753184d1f3c81ec0c8