I just installed Apache 1.3.4 on a Solaris machine and am having a
similar problem to one mentioned before; HTML documents and CGIs are
served out just fine but when it comes to images, the server appears to
get hung. The text always gets transferred, but the image never does.
This is an intermittant problem that does not have anything to do with
file permissions or upper/lower case (already ruled those possibilities
out).
Any help??
Thanks,
-Joshua
What do you mean by "the server appears to get hung"? Does the request
actually appear in the logfile and the server process die or lock up by
evidence of the error_log, ps or the server status page, or does the
client fail to get the image by evidence of a broken image icon? And
which one is true: "The image never does" or "this is an intermittant
problem"? It certainly can't be both!
Sevo
--
Sevo Stille
se...@inm.de
2) There are NO error log entries for this; the access log shows that a get
was performed on that particular image.
With any client computer or some particular client (e.g. yours or those
in your office) only?
> 2) There are NO error log entries for this; the access log shows that a get
> was performed on that particular image.
With what results? Please post a few relevant lines!
> Howdy,
>
> I just installed Apache 1.3.4 on a Solaris machine and am having a
> similar problem to one mentioned before; HTML documents and CGIs are
> served out just fine but when it comes to images, the server appears to
> get hung. The text always gets transferred, but the image never does.
> This is an intermittant problem that does not have anything to do with
> file permissions or upper/lower case (already ruled those possibilities
> out).
>
> Any help??
>
> Thanks,
>
> -Joshua
>
Joshua,
You don't mention your hardware, but --
I had the same problem with Apache on an old (read ancient) 3B2-1100 from
AT&T days. The resolution was to compile Apache with NO_LINGCLOSE defined.
After fighting this for a couple of weeks, I finally found that the OS was
closing the socket before the image got sent. Apache thought it had been
served, so no error. Now, everything works fine.
Required Disclaimer:
The opinions expressed herein are my own and are NOT those of my employer.
--
Bill Simeon MCSE MCP+I
NCR GPCGSC
When I die, I want to go peacefully,
In my sleep, like my grandfather.
Not screaming,
like the passagners in his car!
wsi...@netscape.net
The problem appears to occur (fairly randomly I might add) on any client whether
it's my own or anyone else in the office, or at remote locations.
> > 2) There are NO error log entries for this; the access log shows that a get
> > was performed on that particular image.
>
> With what results? Please post a few relevant lines!
Here's the access log for the image request when it DOESN'T work:
python.cs.indiana.edu - - [04/Feb/1999:08:26:23 -0500] "GET /stu/img/studserv.jpg
HTTP/1.1" 200 9933 "http://www.law.indiana.edu/stu/index.html" "Mozilla/4.0
(compatible; MSIE 4.01; Windows NT)"
and less than a minute later, it DID work:
python.cs.indiana.edu - - [04/Feb/1999:08:27:47 -0500] "GET
/stu/img/studserv.jpg HTTP/1.1" 200 11454
"http://www.law.indiana.edu/stu/index.html"
"Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)"
- Joshua
Request ok, but only 9933 Bytes delivered.
> and less than a minute later, it DID work:
>
> python.cs.indiana.edu - - [04/Feb/1999:08:27:47 -0500] "GET
> /stu/img/studserv.jpg HTTP/1.1" 200 11454
> "http://www.law.indiana.edu/stu/index.html"
> "Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)"
Request ok, and 11454 Bytes delivered. This probably is the real file
size. Could be a network related problem, or a file system issue. What
does netstat say? Is the directory in question NFS mounted?
polecat.law.indiana.edu.www morri.law.indiana.edu.1108 7351 1459 8760 0
ESTABLISHED
polecat.law.indiana.edu.www morri.law.indiana.edu.1109 7509 0 8760 0
FIN_WAIT_2
while the request is ongoing. After the image comes back as "broken", netstat says:
polecat.law.indiana.edu.telnet morri.law.indiana.edu.1086 8351 0 8760 0
ESTABLISHED
polecat.law.indiana.edu.www morri.law.indiana.edu.1108 7351 1459 8760 0
CLOSE_WAIT
Interestingly enough, the access log during this particular access (it is a different
image this time) reveals that again, only 9933 bytes were delivered!! :
morri.law.indiana.edu - - [04/Feb/1999:11:06:17 -0500] "GET /wel/img/welcome.jpg
HTTP/1.1" 200 9933 "http://www.law.indiana.edu/wel/index.html" "Mozilla/4.0
(compatible; MSIE 4.01; Windows NT)"
-Joshua