This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: [ANNOUNCEMENT] TEST RELEASE: Cygwin 1.7.35-0.3
- From: "cyg Simple" <cygsimple at gmail dot com>
- To: <cygwin at cygwin dot com>
- Date: Sat, 21 Feb 2015 12:25:04 -0500
- Subject: RE: [ANNOUNCEMENT] TEST RELEASE: Cygwin 1.7.35-0.3
- Authentication-results: sourceware.org; auth=none
- References: <announce dot 20150218105937 dot GA28211 at calimero dot vinschen dot de> <87d255htw7 dot fsf at Rainer dot invalid> <20150220095617 dot GO26084 at calimero dot vinschen dot de> <54E75BB9 dot 90807 at coverity dot com> <20150220162442 dot GA26084 at calimero dot vinschen dot de> <54E763CD dot 9000307 at coverity dot com> <20150220170354 dot GE26084 at calimero dot vinschen dot de>
> From: Corinna Vinschen
>
> Maybe it is actually simpler than that. Invalidating the cache as a whole
> probably never makes sense. In fact there are two reasons for
> invalidation:
>
> - The pw_name, pw_shell, pw_home, pw_gecos settings for a user changed.
>
How is pw_name going to change without a logoff?
> - The interface to the DC was broken and there are entries of the type
> Achim mentioned, "DOM+User(RID)".
>
> The first case can only be fixed by invalidating the cache on a regular basis. If
> we didn't fetch the info for a user for, say, 5 minutes, drop the entry from the
> cache and renew the information by asking the DC again.
>
Maybe too many requests to the DC for all users? Couldn't you just reinitialize if the network data changes? There are times when I would be on the DC and times when I am not with the same account.
> As for the second case, the DOM+User(RID) entries are undesired and wrong
> anyway. So maybe the caching code could do what you said in the first place.
> Invalidate the cache on every network change. But then, only invalidate the
> entries of the aforementioned type.
>
A network change event works fine for me but not a timer event.
> Care to hack a bit?
>
I'll take to NET plea as well. I'm doing good to read the list mail.
--
cyg Simple
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple