Ups, now I find the root of my strange problem...
Peter Rossbach wrote:
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
So, everything is fine then ;)
Is Tomcat reporting errors. Is should detect if the
sendfile is supported or not via
Library.APR_HAS_SENDFILE field.
In case this is false, the normal methods will be
used.
Look at Library.initialize L 176
APR_HAVE_IPV6 = has(0);
APR_HAS_SHARED_MEMORY = has(1);
APR_HAS_THREADS = has(2);
APR_HAS_SENDFILE = has(3);
Start with zero, but jnilib.c starts with one?!
L 294
CN_IMPLEMENT_CALL(jboolean, Library, has)(TCN_STDARGS, jint what)
{
jboolean rv = JNI_FALSE;
UNREFERENCED_STDARGS;
switch (what) {
case 1:
#if APR_HAVE_IPV6
rv = JNI_TRUE;
#endif
break;
case 2:
#if APR_HAS_SHARED_MEMORY
rv = JNI_TRUE;
#endif
break;
case 3:
#if APR_HAS_THREADS
rv = JNI_TRUE;
#endif
break;
case 4:
#if APR_HAS_SENDFILE
rv = JNI_TRUE;
#endif
I think that isn't correct or every one at the middle decrement the
has() value! Can I change the Library.java ?
Of course the other solution is to install
the Windows on MAC ;)
OK, at the VM's from Parallels or vmware coming up final, this was a
really an option, but then also Liunx works fine ... :-)
Today, I learn the first really bad missing MAC OS X feature.
Peter
Regards,
Mladen.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]