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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]