Hi;

Well, i've mucked with the code sufficiently to not be sure what i've got,
so i'm starting over with a fresh install.

I am starting with threads = 0 and only changed the webmaster name and the
logfile directory in the tclhttpd.rc file. In all other respects, the
distribution is just as it came out of the distribution .tgz file.

The first thing i've noticed is that with empty log files, the first time
one accesses the home index.html file, this is the only thing written to the
log_<date> file:
216.39.170.247 - - [09/May/2000:17:05:43-0700] "GET /images/Space.gif
HTTP/1.1" 404 - "http://ticktick:8015/" "Mozilla/4.0 (compatible; MSIE 5.01;
Windows NT)" "-"

(I looked and there is no space.gif file in htdocs/images.)

The url request and url reply counter increment by 1 on the httpd gui.

If you then click on "home" again (actually, shift-home to force refetch) in
the browser (which is set to "http://ticktick:8015"), then the httpd gui
increments url request and url reply by 2 instead of one and the following
is written in the log_<date> file:
216.39.170.247 - - [09/May/2000:17:13:37-0700] "GET / HTTP/1.1" 200 - "-"
"Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)" "-"
216.39.170.247 - - [09/May/2000:17:13:37-0700] "GET /images/Space.gif
HTTP/1.1" 404 - "http://ticktick:8015/" "Mozilla/4.0 (compatible; MSIE 5.01;
Windows NT)" "-"

(oops, that time it went from 1 to 5 in the gui!!)

Then I clicked on shift-"home" a whole bunch more times and observed that
the gui request/reply counters increment mostly by 1, and sometimes by 2 but
always the only thing showing up in the log_<date> file is:
216.39.170.247 - - [09/May/2000:17:13:37-0700] "GET /images/Space.gif
HTTP/1.1" 404 - "http://ticktick:8015/" "Mozilla/4.0 (compatible; MSIE 5.01;
Windows NT)" "-"

I believe that this 404 error is where the multi-threaded httpd was
crunching and it would then put the error in the error log or on the error
page that I sent to you last Brent.

When I clicked on the 'server statistics' link, I got the following in the
log_<date> file:
216.39.170.247 - - [09/May/2000:17:25:35-0700] "GET /status/ HTTP/1.1" 200 -
"http://ticktick:8015/" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)"
"-"
216.39.170.247 - - [09/May/2000:17:25:35-0700] "GET /images/pwrdLogo150.gif
HTTP/1.1" 200 2489 "http://ticktick:8015/status/" "Mozilla/4.0 (compatible;
MSIE 5.01; Windows NT)" "-"
216.39.170.247 - - [09/May/2000:17:25:35-0700] "GET /images/Blue.gif
HTTP/1.1" 200 35 "http://ticktick:8015/status/" "Mozilla/4.0 (compatible;
MSIE 5.01; Windows NT)" "-"

I am curious to know why the url of the request isn't getting put into the
log_<date> file? Isn't this info needed if one wants to do any statistics on
what pages are being visited?

This is all getting done on NT 4.0sp6a, dual pentium pro 200 with 256mb
memory. Tcl8.3.1 and tk8.3.1 with multi-threading enabled are being used.
Browser and server are both on the same machine and 216.39.170.247 is my
static ip address.

Regards,

Dave LeBlanc

P.S. I would also like to request/suggest that the shutdown message be both
in the log_<date> file and the log_error file so one can distinguish one
httpd run from another. In fact, why put it in the log_error file at all -
it's not really an error is it? - dhl

P.P.S. I still have warm fuzzies for httpd, and look forward to when it's
going to run on the tk gui multi-threaded. I want to express my sincerest
appriciation for Brent's work. - dhl






Reply via email to