Re: [squid-users] User Authentication Begins Failing

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Thu, 06 Sep 2007 16:14:06 +0200

On tor, 2007-09-06 at 18:49 +0800, Adrian Chadd wrote:
> On Thu, Sep 06, 2007, Henrik Nordstrom wrote:
> > On tor, 2007-09-06 at 11:06 +0800, Adrian Chadd wrote:
> > > I've seen a race condition here. The NCSA helper only reopens the file when
> > > it sees the modification time change.
> >
> > Right.. it should add a little margin and not reopen the file if it's
> > being modified just now..
>
> You could stat() the file to see if the file size has changed. :P

With a 2 seconds or so margin on the stat time you should not need to
care. Also solves the double password change within the same second
problem... but yes checking the size as well do not hurt.

Patch adding a 2 seconds margin to the stat time is attached.

Regards
Henrik

Received on Thu Sep 06 2007 - 08:14:16 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Oct 01 2007 - 12:00:02 MDT