httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronald Paul <rcp...@xs4all.nl>
Subject [users@httpd] Apache 2 and smbfs
Date Sun, 10 Nov 2002 13:37:20 GMT
Hello,

I have a problem with these two. I've mounted some Windows-shares and
can access them via the normal fs. But, I can't access the files via
an alias in Apache 2. ktrace(1)-ing gave me this error:

  9700 httpd    RET   sendfile -1 errno 45 Operation not supported

Searching the archives of this mailinglist told me I have to recompile
Apache with --without-sendfile or wait for 2.0.44 and use
EnableSendfile. Now I was wondering why Apache doesn't fall-back on
normal read-operations whenever the sendfile-call fails. Can someone
shine his light on this for me?

Here is the complete trace:

>   9700 httpd    RET   accept 15/0xf
>   9700 httpd    CALL  gettimeofday(0xbfbff8cc,0)
>   9700 httpd    RET   gettimeofday 0
>   9700 httpd    CALL  getsockname(0xf,0x81f4094,0x81f40b0)
>   9700 httpd    RET   getsockname 0
>   9700 httpd    CALL  gettimeofday(0xbfbff8cc,0)
>   9700 httpd    RET   gettimeofday 0
>   9700 httpd    CALL  fcntl(0xf,0x3,0)
>   9700 httpd    RET   fcntl 2
>   9700 httpd    CALL  fcntl(0xf,0x4,0x6)
>   9700 httpd    RET   fcntl 0
>   9700 httpd    CALL  read(0xf,0x8203028,0x1f40)
>   9700 httpd    GIO   fd 15 read 247 bytes
>        "GET /some/file.ext HTTP/1.1\r
>       Accept: */*\r
>       Accept-Language: nl\r
>       Accept-Encoding: gzip, deflate\r
>       User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)\r
>       Host: iris\r
>       Connection: Keep-Alive\r
>       Cache-Control: no-cache\r
>       \r
>        "
>   9700 httpd    RET   read 247/0xf7
>   9700 httpd    CALL  gettimeofday(0xbfbff88c,0)
>   9700 httpd    RET   gettimeofday 0
>   9700 httpd    CALL  gettimeofday(0xbfbff8cc,0)
>   9700 httpd    RET   gettimeofday 0
>   9700 httpd    CALL  stat(0x81ff710,0xbfbff734)
>   9700 httpd    NAMI  "/remote/pws.data/Internet/www/some/file.ext"
>   9700 httpd    RET   stat 0
>   9700 httpd    CALL  open(0x81ff7f0,0,0)
>   9700 httpd    NAMI  "/remote/pws.data/Internet/www/some/file.ext"
>   9700 httpd    RET   open 16/0x10
>   9700 httpd    CALL  read(0xf,0x8203028,0x1f40)
>   9700 httpd    RET   read -1 errno 35 Resource temporarily unavailable
>   9700 httpd    CALL  sendfile(0x10,0xf,0,0,0x150c,0xbfbff684,0xbfbff67c,0)
>   9700 httpd    GIO   fd 15 wrote 320 bytes
>        "HTTP/1.1 200 OK\r
>       Date: Sun, 10 Nov 2002 10:52:29 GMT\r
>       Server: Apache/2.0.43 (Unix) PHP/4.2.3\r
>       Last-Modified: Wed, 01 May 2002 14:58:18 GMT\r
>       ETag: "4e85cae0-150c-fabe3680"\r
>       Accept-Ranges: bytes\r
>       Content-Length: 5388\r
>       Keep-Alive: timeout=15, max=100\r
>       Connection: Keep-Alive\r
>       Content-Type: text/html; charset=ISO-8859-1\r
>       \r
>        "
>   9700 httpd    RET   sendfile -1 errno 45 Operation not supported
>   9700 httpd    CALL  gettimeofday(0xbfbfd5e8,0)
>   9700 httpd    RET   gettimeofday 0
>   9700 httpd    CALL  write(0xa,0xbfbfd694,0x6f)
>   9700 httpd    GIO   fd 10 wrote 111 bytes
>        "[Sun Nov 10 11:52:29 2002] [info] (45)Operation not supported: core_output_filter:
writing data to the network
>        "
>   9700 httpd    RET   write 111/0x6f
>   9700 httpd    CALL  getrusage(0,0xbfbff8ac)
>   9700 httpd    RET   getrusage 0
>   9700 httpd    CALL  getrusage(0xffffffff,0xbfbff8ac)
>   9700 httpd    RET   getrusage 0
>   9700 httpd    CALL  gettimeofday(0xbfbff8a4,0)
>   9700 httpd    RET   gettimeofday 0
>   9700 httpd    CALL  gettimeofday(0xbfbff71c,0)
>   9700 httpd    RET   gettimeofday 0
>   9700 httpd    CALL  close(0xf)
>   9700 httpd    RET   close 0
>   9700 httpd    CALL  read(0x6,0xbfbff9bf,0x1)
>   9700 httpd    RET   read -1 errno 35 Resource temporarily unavailable
>   9700 httpd    CALL  close(0x10)
>   9700 httpd    RET   close 0
>   9700 httpd    CALL  gettimeofday(0xbfbff96c,0)
>   9700 httpd    RET   gettimeofday 0
>   9700 httpd    CALL  accept(0x3,0x81f40dc,0x81f40f8)

I'm using Apache 2.0.43 on FreeBSD 4.7-RELEASE. The problem als occurs
with 2.0.39, but not with 1.3.27 which seems to use mmap() and
writev().

TIA.

-- 
Greetings,
Ronald


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message