You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by TO...@aol.com on 2000/10/23 08:22:30 UTC
1.3.15: ap_select() fix?
ap_select() fix?
If it's 'last call' for some fixes for 1.3.15 there is something
you all need to know about ap_select() that MAY or MAY
NOT be a 'bug' that should be fixed before 1.3.15 rolls.
Here is the situation...
In the headers... ap_select() is nothing more than a MACRO
which is re-defining the actual OS specific BSD select() call.
It does what it should and life is good... until you go to build
a module externally.
What happens then is that every other ap_xxxxx call comes
right out of the Apache library EXCEPT 'ap_select()' which,
of course, is not an API library call at all even though you
would think that it was supposed to be since it is named
as if it were.
At that point you end up having to add a whole bunch of link
commands and sockets include headers that you thought
you weren't supposed to have just to get the 'select' call
you need.
mod_cgi.c is a good example. It compiles completely and cleanly
outside the Apache tree using only the Apache library EXCEPT
for the 'ap_select()' call.
Seems like this is not what you all had in mine when you created
the 'ap_xxxxx' APIs and libraries. To make it all the way to
total independence for module writers except for one lousy
BSD 'select()' call seems like a trip at the wire after a long marathon.
All it will take to fix this is to simply make ap_select() a REAL
ap_xxxx library call and then have IT include the right 'select()'
call for you into the AP library itself and now you can truly write
modules all day long using ONLY the Apache library. Pretty neat.
Worth a patch, or no?
Yours...
Kevin Kiley
CTO, Remote Communications, Inc.
http://www.RemoteCommunications.com/
http://www.RemoteCommunications.com/rctpd/ - Free IETF Encoding Server
http://www.RemoteCommunications.com/apache/ab/ - Free Enhanced ApacheBench
http://www.RemoteCommunications.com/apache/mod_gzip/ - Free Apache Content
Acceleration module
Re: 1.3.15: ap_select() fix?
Posted by Tony Finch <do...@dotat.at>.
TOKILEY@aol.com wrote:
>
>Worth a patch, or no?
No, this is pointless.
Tony.
--
en oeccget g mtcaa f.a.n.finch
v spdlkishrhtewe y dot@dotat.at
eatp o v eiti i d. fanf@covalent.net