fix: don't ignore all but the first resolved socket addresses
Compare changes
Files
3+ 147
− 75
@@ -34,6 +34,7 @@ use futures::{AsyncRead, AsyncWrite};
@@ -101,66 +102,80 @@ impl TcpStream {
@@ -195,30 +210,82 @@ fn cvt(t: libc::c_int) -> io::Result<libc::c_int> {
@@ -299,6 +366,11 @@ unsafe fn resolve_addr(
@@ -591,7 +663,7 @@ mod tests {
@@ -775,10 +847,10 @@ mod tests {
@@ -794,9 +866,8 @@ mod tests {
@@ -813,6 +884,7 @@ mod tests {