Re: apr_global_mutex_create vs apr_proc_mutex_create

2016-03-24 Thread William A Rowe Jr
proc_mutex can only be used to block on a cross process event. It can be used in a threaded server, but cannot be held in multiple threads, you might use it to block in a single thread queue per-process. Thread_mutex will not block between processes, this is used for the mutex-per-process logic

Re: ssl_var_lookup snippet was Re: Confused about modules processing order...

2012-06-27 Thread William A. Rowe Jr.
On 6/26/2012 3:17 PM, oh...@cox.net wrote: Sorin Manolache sor...@gmail.com wrote: On 2012-06-26 19:56, oh...@cox.net wrote: You cannot wait until mod_ssl runs its fixups, you have to hook one of the hooks that execute earlier than webgate's check_user_id or auth_checker. (You have to

Re: required packages for mod_uio.so for Windows Environment

2011-12-02 Thread William A. Rowe Jr.
On 12/2/2011 10:23 PM, KESTAR wrote: Hi I downloaded apache_2.2.8-win32-x86-no_ssl and installed apache http server 2.2.8 in windows 32 bit env. After modifying httpd.conf file I am not able to start apache server. When I checked the syntax of httpd.conf file by issuing the command httpd.exe

Re: mutex permission denied

2011-08-17 Thread William A. Rowe Jr.
On 8/17/2011 1:23 PM, Jason Funk wrote: I find that if I use seteuid() to the uid of the user that my server is running as before creating the mutex and back to root afterwards, then it works. Is there anything wrong with this approach? This only works if the target path is apache-user

Re: Process lifetime and hooks to use

2010-04-18 Thread William A. Rowe Jr.
On 4/18/2010 2:34 AM, alin vasile wrote: the monitor hook gets only a pointer to an apr_pool_t structure. Take a look at apr_pool_data_* API's, that should provide you all of the context and persistence you need. You will never see anything about servers, connections or requests because this is

Re: LD_PRELOAD for modules

2010-03-27 Thread William A. Rowe Jr.
On 3/26/2010 10:36 PM, Andrej van der Zee wrote: Hi, I want to override a library that is linked with an Apache module, i.e. I want to use my modified version of the MySQL client library for example for mod_php. I would like to do this without relinking or even modifying the mod_php lib. I

Re: Can't apply patch zlib-1.2.3-vc32-2005-rcver.patch

2010-03-08 Thread William A. Rowe Jr.
On 3/8/2010 8:54 AM, Serj wrote: Will Apache compile successfully without this patch? The patches are provided principally to produced symbolic .pdb's to aid the developers in debugging. If you don't know what I'm saying, it's unlikely you need these patches at all.

Re: I'm stuck with an OS X module problem and -mmacosx-version-min=10.5

2009-11-16 Thread William A. Rowe Jr.
Patrick McManus wrote: Of course, the SL binary will not run on 10.5 - I get linker errors when apache loads it. That's expected (ok, I forgot it, but its normal) - and then I rebuilt the module with -mmacosx-version-min=10.5. The linker errors resolved themselves. Hurrah. However now

Re: Envitonment variables inside mod_alias: is it real?

2009-06-19 Thread William A. Rowe, Jr.
Александр Макаренко wrote: Hi, guys! I got such trouble and need some help or advice: using mod_alias directives AliasMatch or Alias... I thought about inserting environment variables like HTTP_HOST inside of these directives. I tried luck with %{some_var} or ${some_var} (like in

Re: How to find out which MPM process model?

2009-03-17 Thread William A. Rowe, Jr.
Andrej van der Zee wrote: Hi, I am looking for a way to find out if I need to set thread-based mutexes in case of MPM worker. ap_mpm_query

Re: handling client abort instantly?

2009-03-03 Thread William A. Rowe, Jr.
Saju Pillai wrote: I can think of a *hack* to determine if the client has really gone away. In your module you can possibly do client = ap_filter_t-ctx-client_socket /* ap_filter_t is either the input or output filter stack */ to get the apr client socket. You can try do a 0-byte read() on

Re: understanding apr_strtok()

2008-12-12 Thread William A. Rowe, Jr.
Sam Carleton wrote: I am trying to use apr_strtok() for the first time. I am taking the add_cookie() function from mod_rewrite.c, no changes. I am passing in the string, variable 's': KioskViewingStation:KVS_VERSION::5 The first line that executes in the function is: char

Re: Apache Version

2008-08-18 Thread William A. Rowe, Jr.
John Hosie wrote: Planned deployment platform is Red Hat Enterprise 5 Advanced. Fedora 8 here, just trying a few wildcard searches; $ yum list apache\* Available Packages apachetop.i386 0.12.6-3.fc8 fedora $ yum list httpd\* Installed Packages httpd.i386

Re: Packaging

2008-08-14 Thread William A. Rowe, Jr.
Tim Bray wrote: Creating a build system for your module will be challenging and irritating. No doubt :) Obviously, a one-.c-file project isn't so hard using apxs. Anything more sophisticated gets messy. I'd encourage you to take a peek at the work Guenter and I had done at

Re: Pool cleanups on Windows Server 2008

2008-04-29 Thread William A. Rowe, Jr.
César Leonardo Blum Silveira wrote: Hello, The application we develop at the company where I work is presenting some problems in Windows Server 2008. Basically, the pplication consists of a bunch of Apache modules that serves our purposes. For what we have observed so far, pool cleanups

Re: Pool cleanups on Windows Server 2008

2008-04-29 Thread William A. Rowe, Jr.
César Leonardo Blum Silveira wrote: On Tue, Apr 29, 2008 at 1:18 PM, William A. Rowe, Jr. [EMAIL PROTECTED] wrote: César Leonardo Blum Silveira wrote: Hello, The application we develop at the company where I work is presenting some problems in Windows Server 2008. Basically, the pplication

Re: development environments...

2008-03-21 Thread William A. Rowe, Jr.
Sam Carleton wrote: I have spent my development career in Windows using both DevStudio and Visual Studio. One of the reasons I am going to be using Apache C Modules and Axis2/C is to be cross platform. Does anyone have any recommendations on a good cross platform development environments that

Re: Debugging httpd

2008-01-09 Thread William A. Rowe, Jr.
Tim Bray wrote: On Jan 9, 2008, at 5:16 PM, William A. Rowe, Jr. wrote: Hi... I'm back to work on mod_atom and chasing a weird bug around. Anyhow I totally can't figure out what some apr code is doing so I wanted to step into it with the debugger. This sounds lame, but I can't figure out

Re: APXS issue.

2007-07-22 Thread William A. Rowe, Jr.
Mike wrote: On Sat, Jul 21, 2007 at 06:32:09PM -0500, William A. Rowe, Jr. wrote: You probably didn't ensure that the apache2 module structure to be declared in a C namespace as an export. My mod_aspdotnet is one such example, He did. It's already declared as extern C. Great! Wanted

Re: APXS troubles

2007-07-20 Thread William A. Rowe, Jr.
Mike wrote: On 7/20/07, Farokh Irani [EMAIL PROTECTED] wrote: So you mean a change from *.cpp to *.c is the only real working solution? That's strange but anyway it works now... That is how it appears to be. Unfortunately, it's not a good solution because I really don't want to have to rename

Re: APXS on Windows

2007-07-06 Thread William A. Rowe, Jr.
David Wortham wrote: I have (hopefully) a quick question: Does anyone know how to compile modules for Windows platforms? Several alternatives... one nice one for apxs is the work of the modperl folks... try http://archive.apache.org/dist/perl/win32-bin/apxs_win32-0.3.tar.gz documented at

Re: Module license

2007-06-17 Thread William A. Rowe, Jr.
Arturo 'Buanzo' Busleiman wrote: William A. Rowe, Jr. wrote: Of course, it's necessary for you to submit the code to [EMAIL PROTECTED] Yes, of course! I will not submit an incomplete project :P but thanks for the great on-list info! :D You are always welcome :) I pointed it out only

Re: Module license

2007-06-11 Thread William A. Rowe, Jr.
César Leonardo Blum Silveira wrote: Hello, Can a module be licensed under the MIT license? Can a module be proprietary? Read the Apache License; it provides no restrictions on the combination of AL code with other code. The ASF only considers contributions of modules which the author has

Re: Generating XML

2007-05-16 Thread William A. Rowe, Jr.
Tim Bray wrote: On May 16, 2007, at 11:27 AM, William A. Rowe, Jr. wrote: You can count on expat 1.95-ish generation (possibly 2.00) to be built with httpd. Um... the expat 1.95 that's in the current source doesn't seem to have any generation functions; am I missing them or did I mis-read

Re: InterModule Communication(DSO)

2007-05-07 Thread William A. Rowe, Jr.
Graham Dumpleton wrote: Simplest means of setting information for a specific request which can then be seen by a handler implemented in a different module is by setting values in the 'notes' table of the request object. For something more elaborate, you may need to look at using optional

Re: why do they use translate_name hook in mod_file_cache.c?

2007-04-26 Thread William A. Rowe, Jr.
Spend some time in mod_example - each phase is invoked in order - if you waited until the handler phase, the server would do MUCH more work than it really needs to do. Zeus Capricorn wrote: Hi,folks. i am new here . When i read the mod_file_cache.c in the apache source code,i found

Re: how to get started?

2007-03-28 Thread William A. Rowe, Jr.
Sam Carleton wrote: Ok, I have apxs installed!! I have created a basic project called fancy_image_handler, when I follow the instructions in the comment of the mod_fancy_image_handler.c, here is what I am getting: D:\Temp\fancy_image_handlerapxs -c -i

Re: manifest embedding issue?

2007-03-28 Thread William A. Rowe, Jr.
Sam Carleton wrote: I know that as of VS200? (2 or 3) that Microsoft started this whole manifest thing. It is also my understanding that, for C/C++ apps, it can be turned off. What exactly is the issue? Considering it seems most of you are *NIX developers, maybe this is something I can dig

Re: how to get started?

2007-03-26 Thread William A. Rowe, Jr.
1. If your module will ONLY ever be a handler that runs on windows, ISAPI (mod_isapi) might be a better choice. Certainly better than fastcgi for windows-specific apps. (FastCGI is fast because of fork() which windows doesn't support). 2. If you want a windows module, and want to build

Re: function for canonicalizing path names?

2007-03-08 Thread William A. Rowe, Jr.
It would probably merit extending apr_filepath_merge's API to add a resolve symlinks flag (NT junctions, etc) in a platform agnostic way. Bill Dr. Peter Poeml wrote: On Thu, Mar 08, 2007 at 10:53:05AM +0100, Dr. Peter Poeml wrote: Hello, is there a function in apache or apr to canonicalize

Re: How to identify apache memory

2007-03-05 Thread William A. Rowe, Jr.
Joachim Zobel wrote: Am Montag, den 05.03.2007, 17:23 + schrieb Nick Kew: On Mon, 05 Mar 2007 07:55:06 +0100 Joachim Zobel [EMAIL PROTECTED] wrote: I can however provide my own memmory allocation functions to libxml2, so if I can identify apache memory, I can work around this. Have you

Re: Who is Representing Apache?

2006-11-06 Thread William A. Rowe, Jr.
Brian McQueen wrote: I was at a conference for startups last week, and it would have been very useful to have someone there representing Apache. It is going to drop from the minds of its target audience if its utility is not made obvious again and again, obvious and up-to-date. There was a