Fix chrome.socket.tcp API to use all addresses received from DNS.
commita113092147851769526ab89197b64d10d221c9d4
authorsergeyu <sergeyu@chromium.org>
Thu, 9 Jul 2015 01:46:00 +0000 (8 18:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 9 Jul 2015 01:46:41 +0000 (9 01:46 +0000)
treeaa0546a1c03588f7b618b5f80ce627123aac46b5
parent3e7847fcfb33dd0aa06fea2ccbf02f5c07e2b5ea
Fix chrome.socket.tcp API to use all addresses received from DNS.

Previously chrome.socket.tcp API was using only one IP address it
receives from DNS. Fixed it to pass all addresses to TCPClientSocket so
it attempts to connect to all of them before failing.

BUG=508210

Review URL: https://codereview.chromium.org/1229763002

Cr-Commit-Position: refs/heads/master@{#337962}
13 files changed:
chrome/browser/extensions/api/socket/udp_socket_unittest.cc
extensions/browser/api/socket/socket.cc
extensions/browser/api/socket/socket.h
extensions/browser/api/socket/socket_api.cc
extensions/browser/api/socket/socket_api.h
extensions/browser/api/socket/tcp_socket.cc
extensions/browser/api/socket/tcp_socket.h
extensions/browser/api/socket/tls_socket.cc
extensions/browser/api/socket/tls_socket.h
extensions/browser/api/socket/udp_socket.cc
extensions/browser/api/socket/udp_socket.h
extensions/browser/api/sockets_tcp/sockets_tcp_api.cc
extensions/browser/api/sockets_udp/sockets_udp_api.cc