Re: Using PostgreSQL in Apache2 module

2009-02-23 Thread Nick Kew
On Sun, 22 Feb 2009 21:40:57 +0100 Graf László wrote: [hmm, looks like my last reply got lost in the ether] > Hi, > > I try to use PostgreSQL's libpq in an Apache2 module. > The test module, without libpq works fine and the test > application for libpq works fine, too. Is there a good reason

Re: **OFFLIST** Read POST arguments in Apache 2.0

2009-02-23 Thread Fabio Zund
Hi, Thanks for the link. Am I right in assuming that I have to retrieve the post arguments somehow with the apr_bucket_brigade methods? regards, fabio On Mon, 2009-02-23 at 20:27 +, ed wrote: > Hi, > > I think what you're after can be explained here: > > > http://mail-archives.apache.o

Re: Callback function which is just called before connection is destroyed

2009-02-23 Thread Ashish Khare
Eric, Got in doubt.. Sorry to bog you down with so much questions. I think the same will serve for cleanup at the end of response. Am i right ? -Ashish On Mon, Feb 23, 2009 at 11:47 PM, Eric Covener wrote: > On Mon, Feb 23, 2009 at 1:13 PM, Ashish Khare wrote: > > Eric, > > > > Thanks for the

Re: Callback function which is just called before connection is destroyed

2009-02-23 Thread Eric Covener
On Mon, Feb 23, 2009 at 1:13 PM, Ashish Khare wrote: > Eric, > > Thanks for the clarification. > Just one more question. > My requirement is when request or associated reponse is served. I need to > clean up my memory functions. > I think your suggestion "r->connection->pool' will solve my problem

Re: Callback function which is just called before connection is destroyed

2009-02-23 Thread Ashish Khare
Eric, Thanks for the clarification. Just one more question. My requirement is when request or associated reponse is served. I need to clean up my memory functions. I think your suggestion "r->connection->pool' will solve my problem. Please confirm. -Ashish On Mon, Feb 23, 2009 at 11:37 PM, Eri

Re: Callback function which is just called before connection is destroyed

2009-02-23 Thread Eric Covener
On Mon, Feb 23, 2009 at 12:53 PM, Ashish Khare wrote: > Hi Eric, > > Thanks for the fast response. > By "Session" I mean when the request comes into the picture, the "c" > and "r" parameters are intialized. > Session ends when the request is served. the "c" and "r" parameters got > destroyed or c

Read POST arguments in Apache 2.0

2009-02-23 Thread Fabio Zund
Hi I'm currently trying to develop a mod in C that stores all request data into a string and forwards it to to another server via sockets. I have trouble finding out how to read the post parameters. For Apache 1.2 there seems to be a series of methods setup_client_block(), should_client_block(), g

Re: Callback function which is just called before connection is destroyed

2009-02-23 Thread Ashish Khare
Hi Eric, Thanks for the fast response. By "Session" I mean when the request comes into the picture, the "c" and "r" parameters are intialized. Session ends when the request is served. the "c" and "r" parameters got destroyed or cleanup. Can you please send me the code snippet to register the cle

RE: Using PostgreSQL in Apache2 module

2009-02-23 Thread Curt Krone
Are you running on Windows by any chance? I recently tried to use PostgreSQL to store auth info, and discovered that libpq.dll had a dependency on msvcr80.dll. Once I had the PostgreSQL bin and lib directories as well as msvcr80.dll in my PATH everything worked. Hope that helps, curt -O

Re: Callback function which is just called before connection is destroyed

2009-02-23 Thread Eric Covener
On Mon, Feb 23, 2009 at 11:46 AM, Ashish Khare wrote: > Hi, > > I need one small help from you. > I have one memory allocation(malloc) of application associated with "r" > parameter in input filter and output filter. > I need to de-alloacte this memory and I want to de-allocate when session > end

RE: mem_cache and disk_cache acting differently when determine when to cache content?

2009-02-23 Thread Anthony J. Biacco
I have 5 children, so Eric's answer that each process has its own in-memory cache makes sense. -Tony --- Manager, IT Operations Format Dynamics, Inc. 303-573-1800x27 abia...@formatdynamics.com http://www.formatdynamics.com -Original Message- From: Houser, Rick [mai

Callback function which is just called before connection is destroyed

2009-02-23 Thread Ashish Khare
Hi, I need one small help from you. I have one memory allocation(malloc) of application associated with "r" parameter in input filter and output filter. I need to de-alloacte this memory and I want to de-allocate when session ends. Can any one of you please help me, which callback is used to noti

Re: VS: ap_auth_type() -question

2009-02-23 Thread Eric Covener
On Mon, Feb 23, 2009 at 7:41 AM, Jouni Mäkeläinen wrote: >>>if (!encrypted_sso_str || apr_strnatcmp(encrypted_sso_str, "false") == >>> 0) { >>>if (apr_strnatcasecmp(ap_auth_type(r), "auth_xxx") == 0) { >> NULL != ap_auth_type(r)? > Code is supposed to test, if the required auth type ma

RE: mem_cache and disk_cache acting differently when determine when to cache content?

2009-02-23 Thread Houser, Rick
Is this the only child process, or do you have 3+? Thanks, Rick Houser Auto-Owners Insurance Systems Support (517)703-2580 -Original Message- From: Anthony J. Biacco [mailto:abia...@formatdynamics.com] Sent: Friday, February 20, 2009 6:12 PM To: us...@httpd.apache.org Cc: modules-dev@

VS: ap_auth_type() -question

2009-02-23 Thread Jouni Mäkeläinen
>>if (!encrypted_sso_str || apr_strnatcmp(encrypted_sso_str, "false") == >> 0) { >>if (apr_strnatcasecmp(ap_auth_type(r), "auth_xxx") == 0) { > NULL != ap_auth_type(r)? Code is supposed to test, if the required auth type matches (set with AuthType directive) with the auth type ("auth_

Re: ap_auth_type() -question

2009-02-23 Thread Eric Covener
On Mon, Feb 23, 2009 at 2:46 AM, Jouni Mäkeläinen wrote: >if (!encrypted_sso_str || apr_strnatcmp(encrypted_sso_str, "false") == 0) { >if (apr_strnatcasecmp(ap_auth_type(r), "auth_xxx") == 0) { NULL != ap_auth_type(r)? > *** Segmentation fault *** (ap_auth_type) > > Here is the back