Bug 187888
Summary: | squid doesn't handle changes in network interfaces gracefully | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Nils Philippsen <nphilipp> | ||||||
Component: | squid | Assignee: | Martin Stransky <stransky> | ||||||
Status: | CLOSED WONTFIX | QA Contact: | |||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 5 | ||||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2006-07-20 10:40:14 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Nils Philippsen
2006-04-04 10:23:56 UTC
It works for me fine (IP changes, bringing an interface down and up). How can I reproduce it? Do you use any special options in squid.conf, direct connections or something else? Perhaps it's that I use Networkmanager/-vpnc which casually writes a new /etc/resolv.conf whenever there is a status change? I'll try to provoke the problem, the do an strace. Hmm, I can't reproduce it in the RH office here, but it was repeatable at home. I'll try it there. I could reproduce it here. When I ran strace on the squid processes, I saw that it tried to resolve web site names via the name server in the office, rather than what NetworkManager put into /etc/resolv.conf when the interface came up. Does squid somehow cache the contents of /etc/resolv.conf? I figure it doesn't use normal glibc functions (gethostbyname() etc.) to resolve names, but has its own code for that. Perhaps it should check whether /etc/resolv.conf has changed? Created attachment 131646 [details]
This patch adds reloading of /etc/resolv.conf (when it changes)
Created attachment 132681 [details]
updated patch for 2.6 branch
Unfortunately it doesn't work if you use ipcache.... It should work when the current ip record expires and there aren't any cached dns queries... closing as WONTFIX. I think this problem isn't so common and it's a bit overhead for a production environment. |