Subject:
|
Re: Traffic Page Squiff?
|
Newsgroups:
|
lugnet.admin.general
|
Date:
|
Thu, 30 Mar 2000 19:52:38 GMT
|
Viewed:
|
594 times
|
| |
| |
In lugnet.admin.general, Todd Lehman writes:
> Thanks for reporting this. You're right, it was doing something foolish...
> it was generating the new page right over the top of the old page. Now it
> writes the new page out to a temporary file and does an atomic destructive
> rename operation to replace the old file with the completed new file. This
> is guaranteed read-safe under Unix even if someone is still reading the old
> file when you replace it (it doesn't disappear until the last open filehandle
> is closed -- all handled magically and transparently by the filesystem).
> I also wrapped this in a semaphore and added some error handling, so it won't
> start a second process if for some reason it ever does take more than 5
> minutes to run.
>
> BTW, the probability of encountering the bug was approximately 0.116% --
> fortuitously high, as bugs go.
I got it again :)
<http://lightning.prohosting.com/~spontif/temp/traffic3.html> 18546b
<http://lightning.prohosting.com/~spontif/temp/traffic4.html> 20451b
Although this time when I diffed the files, as far as I could tell they were
the same - the first just got truncated.. The time was 19:33 GMT, and the
difference in file size is 1905b. I dunno uf this is a lost packet due to CPU
overloading from the password screen? I took up Larrys challenge for a minute
or two, but only got up to 0.977 seconds :)
Richard
|
|
Message has 1 Reply: | | Re: Traffic Page Squiff?
|
| (...) Okie, either I'm really lucky or this 0.116% figure is too low :) (URL) 16384b (URL) 19484b [22:01 GMT] I'll stop reporting these now, as it might just be a problem with my ISP or machine here. Richard (25 years ago, 30-Mar-00, to lugnet.admin.general)
|
Message is in Reply To:
| | Re: Traffic Page Squiff?
|
| (...) Thanks for reporting this. You're right, it was doing something foolish... it was generating the new page right over the top of the old page. Now it writes the new page out to a temporary file and does an atomic destructive rename operation to (...) (25 years ago, 20-Mar-00, to lugnet.admin.general)
|
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|