Re: Global Data

2008-08-27 Thread César Leonardo Blum Silveira
On Tue, Aug 12, 2008 at 3:50 PM, Harold J. Ship [EMAIL PROTECTED] wrote: I'm in the middle of porting an application from IIS/Windows to Apache 2.2 module. In the application, there is a lot of global data. The data contains both: - application configuration that is read on startup and on

Re: setting cookies ap_hook_check_user_id vs ap_hook_auth_checker

2008-06-20 Thread César Leonardo Blum Silveira
You can set a cookie by setting the Set-Cookie key in the r-headers_out or r-err_headers_out tables (in case your request_rec structure is called r). Something like this static int some_hook(request_rec *r) { ... apr_table_set(r-headers_out, Set-Cookie,

Destroying global mutexes

2008-05-07 Thread César Leonardo Blum Silveira
Hi all, I am having some issues when registering cleanups to destroy global mutexes created in my module's post_config phase. Basically, if I register a cleanup in the server pool that calls apr_global_mutex_destroy, the server doesn't survive graceful restarts. In order to restart Apache, I need

Re: Question regarding the use of DBMs

2008-05-06 Thread César Leonardo Blum Silveira
On Mon, May 5, 2008 at 7:11 PM, ed [EMAIL PROTECTED] wrote: On Mon, 5 May 2008 18:04:15 -0300 César Leonardo Blum Silveira [EMAIL PROTECTED] wrote: Hello, What is the correct way to fill the dsize field in apr_datum_t? I am not sure whether I should do it like

Question regarding the use of DBMs

2008-05-05 Thread César Leonardo Blum Silveira
Hello, What is the correct way to fill the dsize field in apr_datum_t? I am not sure whether I should do it like this apr_datum_t d; d.dptr = hello, world; d.dsize = strlen(d.dptr); or like this apr_datum_t d; d.dptr = hello, world; d.dsize = strlen(d.dptr) + 1; Could anyone tell me whether

Building trunk on Windows

2008-05-02 Thread César Leonardo Blum Silveira
Hi all, Is there any documentation regarding how to build httpd-trunk on Windows? Thanks, -- César L. B. Silveira

Pool cleanups on Windows Server 2008

2008-04-29 Thread César Leonardo Blum Silveira
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 reigstered for the server pool in the post

Re: Pool cleanups on Windows Server 2008

2008-04-29 Thread César Leonardo Blum Silveira
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 consists of a bunch of Apache

Re: Subrequest breaking original request

2008-04-25 Thread César Leonardo Blum Silveira
On Thu, Apr 24, 2008 at 6:16 PM, Joachim Zobel [EMAIL PROTECTED] wrote: Am Mittwoch, den 09.04.2008, 11:26 -0300 schrieb César Leonardo Blum Silveira: Is there any chance the ap_run_sub_req call could be breaking my original request? You don't have to actually do the subrequest, a call

Interruption of request processing

2008-04-11 Thread César Leonardo Blum Silveira
Hi all, I already know that whenever, say, an access checker hook in a module returns something like HTTP_FORBIDDEN, the other access checkers from other modules will not be called. However, will the subsequent hooks be called (like the fixups)? Thank you in advance, -- César L. B. Silveira

Subrequest breaking original request

2008-04-09 Thread César Leonardo Blum Silveira
Hello, I am writing a module which needs to perform a subrequest. The subrequest seems to be breaking my original request, making it return invalid data to the browser (actually it seems to be retuning nothing). Let me try to explain my scenario: My module has an access checker which checks

More than one auth module

2008-01-15 Thread César Leonardo Blum Silveira
Hello all, I would like to know if there is a way to make requests pass more than one authentication phase. Basically, I need to authenticate users using mod_spnego for Kerberos SSO but still authenticate these users using my own module, which determines access levels for them in the system. What

Fixups running twice

2008-01-15 Thread César Leonardo Blum Silveira
Hello, I have written two test modules which only write messages to the error_log. I have the following fixups on them: mod_mod1.c: static int mod1_fixups(request_rec *r) { ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, mod1_fixups); return OK; } mod_mod2.c: static int

Re: Fixups running twice

2008-01-15 Thread César Leonardo Blum Silveira
I figured it out already. A redirect was causing that behaviour. On Jan 15, 2008 10:43 PM, César Leonardo Blum Silveira [EMAIL PROTECTED] wrote: Hello, I have written two test modules which only write messages to the error_log. I have the following fixups on them: mod_mod1.c: static int

Re: Pls Help

2007-08-16 Thread César Leonardo Blum Silveira
The Apache Modules Book by Nick Kew is a very good source of information. On 8/16/07, Subhash KK. [EMAIL PROTECTED] wrote: Hi All, I am new to apache web server development. I need to develop a C module and plug into apache. Please help. Where should I look in ??

DBM and SDBM

2007-06-22 Thread César Leonardo Blum Silveira
Hello all, I have observed a certain difference between DBM and SDBM, but I would like to confirm them with someone more experienced and I also would like to know if I can rely on these observations. It seems to me that if I open a DBM file and then fork my process, the parent and the child

Module license

2007-06-11 Thread César Leonardo Blum Silveira
Hello, Can a module be licensed under the MIT license? Can a module be proprietary? Thanks, -- César L. B. Silveira http://cesarbs.wordpress.com/

Cookie expiration date format

2007-06-06 Thread César Leonardo Blum Silveira
Hello all, I want to set the expiration date on a cookie sent by my module. Is there any APR/Apache API function which returns a date in the format specified for cookies? Also, in order to set the expiration date on a cookie, the only thing that is needed is to add expires=[date] to my cookie,

Surviving restarts

2007-06-06 Thread César Leonardo Blum Silveira
I know this is kind of a generic question, but what could make my module fail (segfault or something of the like) on a restart? Thanks, -- César L. B. Silveira http://cesarbs.wordpress.com/

Creating shm segment in module creation function

2007-05-25 Thread César Leonardo Blum Silveira
Hello all, Is there any problem if I try to create a shared memory segment in the module config creation phase, instead of the post config phase? Thank you, -- César L. B. Silveira http://cesarbs.wordpress.com/

Re: Module address space

2007-05-23 Thread César Leonardo Blum Silveira
Graham, Thank you! Now things are a lot more clear to me :-) -- César L. B. Silveira http://cesarbs.wordpress.com/ On 5/22/07, Graham Dumpleton [EMAIL PROTECTED] wrote: On 23/05/07, César Leonardo Blum Silveira [EMAIL PROTECTED] wrote: Hello all, I have some questions about handling data