How Apache detect data in the hundreds socket under Windows

2006-05-11 Thread Steve
I have download Apache 2.2.2 version. When http connect to server, I saw apr_socket_accept in \srclib\apr\network_io\win32\sockets.c. Which program call this function? How it saves the socket information? If server has hundreds connection. How does server save it and in which function? How Apache d

Re: How to get at the apr_socket_t?

2006-05-11 Thread Tyler MacDonald
William A. Rowe, Jr. <[EMAIL PROTECTED]> wrote: > >ap_get_module_config(r->connection->conn_config, &core_module); > >But that is only avaialable if CORE_PRIVATE is defined... Does that mean my > >module needs to define CORE_PRIVATE in order to get access to an > >apr_socket_t? That seems dirty

Re: How to get at the apr_socket_t?

2006-05-11 Thread William A. Rowe, Jr.
Tyler MacDonald wrote: Tyler MacDonald <[EMAIL PROTECTED]> wrote: I'm working on a raw tcp/ip handler which is going to have to do nonblocking I/O. I'd like to get direct access to the apr_socket_t from the request_rec/conn_rec... OK, I found this in mod_proxy: apr_socket_t *clie

Re: Graham: Re Importer

2006-05-11 Thread Graham Dumpleton
On 12/05/2006, at 3:52 AM, Dan Eloff wrote: On 5/10/06, Graham Dumpleton <[EMAIL PROTECTED]> wrote: Dan Eloff wrote .. > > This may turn out to be messy or not useful as is as well. Overall, I > > guess what we need to come up with is some example use cases where > > search paths are requi

Re: How to get at the apr_socket_t?

2006-05-11 Thread Tyler MacDonald
Davi Arnaut <[EMAIL PROTECTED]> wrote: > > apr_socket_t *client_socket = > > ap_get_module_config(r->connection->conn_config, &core_module); > > > > But that is only avaialable if CORE_PRIVATE is defined... Does that mean my > > module needs to define CORE_PRIVATE in order to get access to an

Re: How to get at the apr_socket_t?

2006-05-11 Thread Davi Arnaut
On Thu, 11 May 2006 13:36:44 -0700 Tyler MacDonald <[EMAIL PROTECTED]> wrote: > Tyler MacDonald <[EMAIL PROTECTED]> wrote: > > I'm working on a raw tcp/ip handler which is going to have to do > > nonblocking I/O. I'd like to get direct access to the apr_socket_t from the > > request_rec/conn_r

Re: How to get at the apr_socket_t?

2006-05-11 Thread Tyler MacDonald
Tyler MacDonald <[EMAIL PROTECTED]> wrote: > I'm working on a raw tcp/ip handler which is going to have to do > nonblocking I/O. I'd like to get direct access to the apr_socket_t from the > request_rec/conn_rec... OK, I found this in mod_proxy: apr_socket_t *client_socket = ap_get_modu

How to get at the apr_socket_t?

2006-05-11 Thread Tyler MacDonald
Hello, I'm working on a raw tcp/ip handler which is going to have to do nonblocking I/O. I'd like to get direct access to the apr_socket_t from the request_rec/conn_rec... I've been poking around the documentation, and I can't find a reference to an apr_socket_t anywhere in that namespace!

Re: [PATCH] aborting on OOM

2006-05-11 Thread Colm MacCarthaigh
On Thu, May 11, 2006 at 04:01:50PM +0100, Joe Orton wrote: > +#if APR_HAVE_UNISTD_H > +#include > +#endif > + We might need io.h on win32, but we can easily figure that out :) > +#define OOM_MESSAGE "[crit] Memory allocation failed, aborting process.\n" APR_EOL_STR instead of \n, but apart from

Re: [PATCH] aborting on OOM

2006-05-11 Thread Joe Orton
On Wed, May 10, 2006 at 07:11:42PM +0100, Colm MacCarthaigh wrote: > On Wed, May 10, 2006 at 10:53:50AM -0700, Garrett Rooney wrote: > > I would personally prefer abort to exit... > > is write()'ing a static error message an option too? I don't know if more effort than this is required to make wr

Re: [PATCH 1/6] scoreboard over-sized

2006-05-11 Thread Jean-frederic Clere
Chris Darroch wrote: Hi -- It looks to me like the memory allocated for ap_scoreboard_image is a little bit over-sized. In r104404 the lb_score elements were added to the scoreboard in the manner of the worker_score array, BTW: lb_scrore has a size of 1024 and proxy_worker_stat 176... I