You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Albert Yu <al...@imtf.ie> on 2003/06/04 18:36:18 UTC
where is apr_sendfile() implementation?
Hi,
I am debugging httpd 2.0.45, I found a problem to read files
on QStar repository.
I found sendfile_it_all() in core.c calls apr_sendfile()
I searched the whole source code in the source package, I
just could not find its implementation. I added printf() to
all apr_socket_sendfile(),
they seem not being called.
Could somebody tell me where the apr_sendfile()
implementation is, or how it works
Thanks.
Best regards,
Albert
Re: where is apr_sendfile() implementation?
Posted by Albert Yu <al...@imtf.ie>.
You can try to input http://localhost/manual/ in your
browser, see what will happen.
Here is the official Apache document:
http://httpd.apache.org/docs-2.0/en/
Albert
----- Original Message -----
From: "Asad Khan" <kh...@hotmail.com>
To: <de...@httpd.apache.org>
Sent: Thursday, June 05, 2003 4:52 PM
Subject: Re: where is apr_sendfile() implementation?
> Dear Albert.
>
> I have downloaded Apache server software for Windows,
installed and do not
> know what to do next. Is there any article that you can
refer to that will
> help?
>
> thx.
>
> ----- Original Message -----
> From: "Albert Yu" <al...@imtf.ie>
> To: <de...@httpd.apache.org>; <tr...@attglobal.net>
> Sent: Thursday, June 05, 2003 11:29 AM
> Subject: Re: where is apr_sendfile() implementation?
>
>
> > Thanks. You are right. It works with "EnableSendfile
Off".
> >
> > Albert
> >
> > ----- Original Message -----
> > From: "Jeff Trawick" <tr...@attglobal.net>
> > To: <de...@httpd.apache.org>
> > Sent: Wednesday, June 04, 2003 5:45 PM
> > Subject: Re: where is apr_sendfile() implementation?
> >
> >
> > > Albert Yu wrote:
> > > > Hi,
> > > >
> > > > I am debugging httpd 2.0.45, I found a problem to
read
> > files
> > > > on QStar repository.
> > >
> > > some filesystems don't support sendfile properly
> > >
> > > use "EnableSendfile Off" in the right directory
container
> > >
> > > > I found sendfile_it_all() in core.c calls
apr_sendfile()
> > >
> > > apr_sendfile() is mapped to apr_socket_sendfile()
> > (apr_sendfile() is a
> > > deprecated name)
> > >
> > > > I searched the whole source code in the source
package,
> > I
> > > > just could not find its implementation. I added
printf()
> > to
> > > > all apr_socket_sendfile(),
> > > > they seem not being called.
> > >
> > > there are a bunch of apr_socket_sendfile()
implementations
> > in
> > > srclib/apr/network_io/unix/sendrecv.c and I guess in
an
> > analogous win32
> > > file as well
> > >
> > > but it is almost 100% certain that you've got a
> > filesystem-specific
> > > limitation and you'll need to use "EnableSendfile Off"
> > (see the docs at
> > > httpd.apache.org/docs-2.0/)
> > >
> > >
> >
> >
>
Re: where is apr_sendfile() implementation?
Posted by Asad Khan <kh...@hotmail.com>.
Dear Albert.
I have downloaded Apache server software for Windows, installed and do not
know what to do next. Is there any article that you can refer to that will
help?
thx.
----- Original Message -----
From: "Albert Yu" <al...@imtf.ie>
To: <de...@httpd.apache.org>; <tr...@attglobal.net>
Sent: Thursday, June 05, 2003 11:29 AM
Subject: Re: where is apr_sendfile() implementation?
> Thanks. You are right. It works with "EnableSendfile Off".
>
> Albert
>
> ----- Original Message -----
> From: "Jeff Trawick" <tr...@attglobal.net>
> To: <de...@httpd.apache.org>
> Sent: Wednesday, June 04, 2003 5:45 PM
> Subject: Re: where is apr_sendfile() implementation?
>
>
> > Albert Yu wrote:
> > > Hi,
> > >
> > > I am debugging httpd 2.0.45, I found a problem to read
> files
> > > on QStar repository.
> >
> > some filesystems don't support sendfile properly
> >
> > use "EnableSendfile Off" in the right directory container
> >
> > > I found sendfile_it_all() in core.c calls apr_sendfile()
> >
> > apr_sendfile() is mapped to apr_socket_sendfile()
> (apr_sendfile() is a
> > deprecated name)
> >
> > > I searched the whole source code in the source package,
> I
> > > just could not find its implementation. I added printf()
> to
> > > all apr_socket_sendfile(),
> > > they seem not being called.
> >
> > there are a bunch of apr_socket_sendfile() implementations
> in
> > srclib/apr/network_io/unix/sendrecv.c and I guess in an
> analogous win32
> > file as well
> >
> > but it is almost 100% certain that you've got a
> filesystem-specific
> > limitation and you'll need to use "EnableSendfile Off"
> (see the docs at
> > httpd.apache.org/docs-2.0/)
> >
> >
>
>
Re: where is apr_sendfile() implementation?
Posted by Albert Yu <al...@imtf.ie>.
Thanks. You are right. It works with "EnableSendfile Off".
Albert
----- Original Message -----
From: "Jeff Trawick" <tr...@attglobal.net>
To: <de...@httpd.apache.org>
Sent: Wednesday, June 04, 2003 5:45 PM
Subject: Re: where is apr_sendfile() implementation?
> Albert Yu wrote:
> > Hi,
> >
> > I am debugging httpd 2.0.45, I found a problem to read
files
> > on QStar repository.
>
> some filesystems don't support sendfile properly
>
> use "EnableSendfile Off" in the right directory container
>
> > I found sendfile_it_all() in core.c calls apr_sendfile()
>
> apr_sendfile() is mapped to apr_socket_sendfile()
(apr_sendfile() is a
> deprecated name)
>
> > I searched the whole source code in the source package,
I
> > just could not find its implementation. I added printf()
to
> > all apr_socket_sendfile(),
> > they seem not being called.
>
> there are a bunch of apr_socket_sendfile() implementations
in
> srclib/apr/network_io/unix/sendrecv.c and I guess in an
analogous win32
> file as well
>
> but it is almost 100% certain that you've got a
filesystem-specific
> limitation and you'll need to use "EnableSendfile Off"
(see the docs at
> httpd.apache.org/docs-2.0/)
>
>
Re: where is apr_sendfile() implementation?
Posted by Jeff Trawick <tr...@attglobal.net>.
Albert Yu wrote:
> Hi,
>
> I am debugging httpd 2.0.45, I found a problem to read files
> on QStar repository.
some filesystems don't support sendfile properly
use "EnableSendfile Off" in the right directory container
> I found sendfile_it_all() in core.c calls apr_sendfile()
apr_sendfile() is mapped to apr_socket_sendfile() (apr_sendfile() is a
deprecated name)
> I searched the whole source code in the source package, I
> just could not find its implementation. I added printf() to
> all apr_socket_sendfile(),
> they seem not being called.
there are a bunch of apr_socket_sendfile() implementations in
srclib/apr/network_io/unix/sendrecv.c and I guess in an analogous win32
file as well
but it is almost 100% certain that you've got a filesystem-specific
limitation and you'll need to use "EnableSendfile Off" (see the docs at
httpd.apache.org/docs-2.0/)