• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Apache 2.2 Adaptor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apache 2.2 Adaptor


  • Subject: Re: Apache 2.2 Adaptor
  • From: Gavin Eadie <email@hidden>
  • Date: Wed, 23 Jul 2008 11:32:11 -0400

On Jul 23, 2008, at 6:14 AM, James Brook wrote:

Can anyone tell me what the state of the art is with Apache 2.2 adaptors at the moment? I would normally go to Wonder, but I see that the source has not changed for some time. My guess is that the Apple adaptor that ships with 5.4 has been rewritten from scratch and will still work with 5.3?

Don't guess, James, you'll be wrong!  They're nearly identical.

Coincidentally, I wrote yesterday:
_______________________________________

... To avoid confusion, I pulled all the versions [of the Apache 2.2.x adaptor] I could find and compared them.  The bottom line is that the differences between them are all quite minor.  Here is a summary of my findings:


"Wonder 5" Adaptors

wonder-5.0.0.7992 (latest from mdimension) differs from Apple's WebObjects 5.4 in:

"apache.conf"

(a) Apple's refers to some files at "System/Library/..." and

(b) note also in Apple's a different default location for the /tmp/logWebObjects adaptor logging

# Note: To enable logging, touch '/tmp/logWebObjects' as the administrator user (usually root).
#
# The following line is the default:
# WebObjectsLog /Library/WebObjects/Logs/WebObjects.log Debug

- - - - - - - - -

Apple's transport.c has a chunk of code starting

       /*
         Do not hold the lock while
         we make the connection -- it could block
         for 3 seconds (depends on config) and take
         the lock with it
        
         read out all the data we need from the instance
         while we still hold the lock
       */

- - - - - - - - -

Apple's WebObjects.c differs in this code, more elaborate than Wonder:

#ifndef PROFILE
   fputs(CRLF,stdout);
#endif

#ifndef PROFILE
   /* resp->content_valid will be 0 for HEAD requests and empty responses */
   if (resp->content_valid) {
      while (resp->content_read < resp->content_length) {
         fwrite(resp->content,sizeof(char),resp->content_valid,stdout);
         resp_getResponseContent(resp, 1);
      }
      fwrite(resp->content,sizeof(char),resp->content_valid,stdout);
   }
   fflush(stdout);
#endif

... but NOTE that the two conditionally compiled sections could be one (true for
Wonder too).  Also the Wonder version does a "fflush(stdout)" in the first conditional
which Apple does not.

- - - - - - - - -

and Wonder's are still "Copyright (c) 2000 Apple Computer, Inc. All Rights Reserved."

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Apache 2.2 Adaptor
      • From: Lachlan Deck <email@hidden>
References: 
 >Apache 2.2 Adaptor (From: James Brook <email@hidden>)

  • Prev by Date: Re: Parameterized NSArray in 5.3.3
  • Next by Date: No template found for component?!?
  • Previous by thread: Apache 2.2 Adaptor
  • Next by thread: Re: Apache 2.2 Adaptor
  • Index(es):
    • Date
    • Thread