Arrg,

you are right! It seems that MAC OS X have no sendfile support. I have search, but I can't find sys/sendfile.h
I don't understand why Library.APR_HAS_SENDFILE not set correctly :-(
apr.h is correct generate without sendfile support #define APR_HAS_SENDFILE 0

Regards
Peter


Am 08.04.2006 um 11:23 schrieb Mladen Turk:

Peter Rossbach wrote:
Hi,
I have test the sendfile apr connector feature with MAC OS X 10.4.5, Java 1.5, APR 1.2.2, Tomcat svn head, Every time as sendfile is use the AprEndpoint.add(SendfileData data) Socket.sendfilen() L1417 returned code 70023 APR_ENOTIMPL
Not yet implemented?!

Looks like APR_HAS_SENDFILE is missing.
Try to compile the APR with --with-sendfile=yes

OTOH it might be that MAC simply does not support
sendfile on the OS level (hard to believe, but ...)

Any hint, have APR 1.2.6 a MAC OS X sendfile support?

Look at the generated apr.h
It should have
#define APR_HAS_SENDFILE 1

Tcnative is using this flag, and if not present
it returns 'not implemented (inside APR)'  error.

Regards
Mladen.

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




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

Reply via email to