-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #41582 - jonhoo:reread-nameservers-on-lookup-fail, r=al…
…excrichton Reload nameserver information on lookup failure As discussed in #41570, UNIX systems often cache the contents of `/etc/resolv.conf`, which can cause lookup failures to persist even after a network connection becomes available. This patch modifies lookup_host to force a reload of the nameserver entries following a lookup failure. This is in line with what many C programs already do (see #41570 for details). On systems with nscd, this should not be necessary, but not all systems run nscd. Fixes #41570. Depends on rust-lang/libc#585. r? @alexcrichton
- Loading branch information
Showing
2 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
Submodule liblibc
updated
25 files
+2 −2 | Cargo.lock | |
+1 −1 | Cargo.toml | |
+19 −0 | README.md | |
+1 −1 | appveyor.yml | |
+0 −2 | ci/run-docker.sh | |
+16 −0 | libc-test/build.rs | |
+2 −0 | src/unix/bsd/mod.rs | |
+17 −0 | src/unix/mod.rs | |
+1 −1 | src/unix/notbsd/android/b64/mod.rs | |
+12 −0 | src/unix/notbsd/android/mod.rs | |
+1 −1 | src/unix/notbsd/linux/mips/mips32.rs | |
+1 −1 | src/unix/notbsd/linux/mips/mips64.rs | |
+1 −0 | src/unix/notbsd/linux/mips/mod.rs | |
+37 −0 | src/unix/notbsd/linux/mod.rs | |
+2 −1 | src/unix/notbsd/linux/musl/mod.rs | |
+1 −0 | src/unix/notbsd/linux/other/b32/arm.rs | |
+1 −0 | src/unix/notbsd/linux/other/b32/powerpc.rs | |
+1 −0 | src/unix/notbsd/linux/other/b32/x86.rs | |
+1 −0 | src/unix/notbsd/linux/other/b64/aarch64.rs | |
+1 −0 | src/unix/notbsd/linux/other/b64/powerpc64.rs | |
+1 −0 | src/unix/notbsd/linux/other/b64/sparc64.rs | |
+1 −0 | src/unix/notbsd/linux/other/b64/x86_64.rs | |
+1 −1 | src/unix/notbsd/linux/other/mod.rs | |
+2 −1 | src/unix/notbsd/linux/s390x.rs | |
+113 −45 | src/unix/solaris/mod.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters