Doug MacEachern wrote:

> On Fri, 21 Dec 2001, Stas Bekman wrote:
> 
> 
>>>length required.  have you seen $r->sendfile?  this is meant to provide an
>>>interface to the 2.0 send_fd but just for sending files.
>>>
>>I've seen sendfile, but it cannot replace send_fd, it has the same 
>>requirement of input length. Also it's not available on all platforms.
>>send_fd is using it internally if it's available.
>>
> 
> it is not meant to _replace_ send_fd, re-read what i said: "interface
> ... just for sending files"


That's the thing, we can use sendfile to send files, but not an already 
opened fh, so I was saying that it doesn't help.


>>APR is breaking backwards compatibility with apache-1.3.x, though my 
>>questions regarding this and other back compat issues go unanswered at 
>>the apr-dev list :(
>>
> 
> it is ok for Apache and APR to break backwards compat.  it is not possible
> for any 1.3 based C module to run with apache-2.0 without changes.  it is
> possible for a modperl 1.x based Perl module to run with modperl-2.0
> without changes, which is what i'm trying to maintain.


Yes and no. API changes are OK, we can adjust the internals so the Perl 
interface doesn't change. But if the functionality changes (by removing 
some things that were available before), there is nothing we can do but 
implement it ourselves and bearing the resolution of all the portability 
issues.


>>Do you say that compat.pm's send_fd version is the best we can offer as 
>>a replacement for the one in 1.x? It's not as fast as it used to be.
>>
> 
> not at all, compat.pm's send_fd is only intended for compat, which is why
> it lives in compat.pm.  performance can come later.

You mean I shouldn't even try to get APR support things like -1 for the 
input length in send_fd before the API is frozen?

I think it's quite important to concentrate on implementing things which 
interface Perl and httpd functionality, so if something is broken or 
incomplete we can fix/influence. Once 5.8.0 and httpd-2.0 (+apr) get 
released we are in a lot of trouble if we cannot get all we need from 
these "libraries" before they are released.

Is my thinking wrong?

_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to