#
319178 |
|
30-May-2017 |
cy |
MFC r318588:
Fix up two assertions following malloc(). vangyzen@ notified me of the second one. The first one is fixed as well.
Reported by: vangyzen@
|
#
319177 |
|
30-May-2017 |
cy |
MFC r318578:
Fix non-recoverable name resolution failures due to negative cache entries never expiring. This patch honours the negative cache timeout.
To test/experience the failure do the following:
1. Edit /etc/ncd.conf to adjust the cache timeouts as follows:
positive-time-to-live hosts 30 negative-time-to-live hosts 1
2. Ensure that nsswitch.conf hosts line contains something like:
hosts: files cache dns
Note that cache must be specified before dns.
3. Start nscd.
4. Run the following command:
while true; do nc -z -w 3 www.google.com 80; sleep 5; done
5. While running the command, remove or comment out all nameserver statements in /etc/resolv.conf. After a short while you will notice non-recoverable name rsolution failures.
6. Uncomment or replace all nameserver statements back into /etc/resolv.conf. Take note that name resolution never recovers. To recover nscd must be restarted. This patch fixes this.
PR: 207804 Submitted by: Jov <amutu@amutu.com>
|
#
273238 |
|
17-Oct-2014 |
jhb |
MFC 272668: Properly set the timeout in a query_state. The global query_timeout configuration value is an integer count of seconds, it is not a timeval. Using memcpy() to copy a timeval from it put garbage into the tv_usec field.
PR: 194025
|
#
273238 |
|
17-Oct-2014 |
jhb |
MFC 272668: Properly set the timeout in a query_state. The global query_timeout configuration value is an integer count of seconds, it is not a timeval. Using memcpy() to copy a timeval from it put garbage into the tv_usec field.
PR: 194025
|