Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN
Hi Joe, Appreciate the response. thanks This is similar to what someone else told me too (that it may be a non-null terminated string issue). The point is how can I debug it further.I currently am printing all the character portions of the request rec including the headers_out and

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread Joe Lewis
SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN wrote: Hi, i have an authentication module that i am trying to port from 64 bit linux to 32 bit solaris. The problem is that when the module redirects the request to the authentication page, the URL seems to be getting corrupted when it is passed

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread Joe Lewis
SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN wrote: Hi Joe, Appreciate the response. thanks This is similar to what someone else told me too (that it may be a non-null terminated string issue). The point is how can I debug it further.I currently am printing all the character portions of the

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN
thanks again, yeah Ive logged it using fprintf statements upto the return(HTTP_REDIRECT) point of code at which point I assume it exits the code. Its also pretty much the last module being added as part of the LoadModule line of statements in the http. Is there anyway to make sure that no other

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread Joe Lewis
SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN wrote: thanks again, yeah Ive logged it using fprintf statements upto the return(HTTP_REDIRECT) point of code at which point I assume it exits the code. Its also pretty much the last module being added as part of the LoadModule line of statements

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN
Hi, Could you let me know the syntax. I did a quick search for seting 'apache- registration to LAST and couldnt find it. I dont know much about apache handlers ,I am more interested in getting this to work.. Va you email me instrtions as to how thses are used. The basic process flow is tha this

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread Joe Lewis
SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN wrote: Hi, Could you let me know the syntax. I did a quick search for seting 'apache- registration to LAST and couldnt find it. ap_hook_insert_error_filter(insert_my_error_filter, NULL, NULL, APR_HOOK_LAST); The last parameter specifies where we are

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN
Gotccha, heres what the relevant hook info static void someModule_register_hooks (apr_pool_t * p) { ap_hook_post_config (Some_init_method, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_check_user_id (SomeMethod, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_auth_checker (SomeMethod, NULL, NULL,

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN
apologies for all the typo's. I think im getting sick and probably shoudnt even be at work today ... :-) - Original Message - From: Sailesh Krishnamurti modules-dev@httpd.apache.org To: modules-dev@httpd.apache.org At: 12/10 11:06:13 Hi, Could you let me know the syntax. I did a quick

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread Joe Lewis
SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN wrote: Gotccha, heres what the relevant hook info static void someModule_register_hooks (apr_pool_t * p) { ap_hook_post_config (Some_init_method, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_check_user_id (SomeMethod, NULL, NULL, APR_HOOK_MIDDLE);

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN
just finished trying that. Same result still seems to have the same garbage characters. Is there any other debugging technique we can try. Can we force nulll termination of strings. Are we sure it is a non-null terminated string issue, since the characters are occuring in the begining of the

Re: http-redirect url gets corrupted in request_rec - apache 2

2007-12-10 Thread Joe Lewis
Please Stop Top Posting. SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN wrote: just finished trying that. Same result still seems to have the same garbage characters. Is there any other debugging technique we can try. Can we force nulll termination of strings. Are we sure it is a non-null

Re: How does set status code in filter work

2007-12-10 Thread John Zhang
Joe, Thanks for you rreply, but I do not quite understand Your filter should run before the content type is set. Could you elaberated on that? My filter is an output filter. Also, if I issue a redirect in my (output) filter to (say /errors/HTTP_FORBIDDEN.html) and I am a filter for

Re: How does set status code in filter work

2007-12-10 Thread Joe Lewis
John Zhang wrote: Joe, Thanks for you rreply, but I do not quite understand Your filter should run before the content type is set. Could you elaberated on that? My filter is an output filter. The filter types are AP_FTYPE_ (followed by one of the following ) RESOURCE, CONTENT_SET,

Re: time for 1.3.40 and 2.2.7 ?

2007-12-10 Thread Ruediger Pluem
On 12/10/2007 08:31 AM, Mladen Turk wrote: Ruediger Pluem wrote: Are you talking about #define AJP_MAX_BUFFER_SZ 16384 in ajp.h? If yes, it was you in r467257 :-). ROTFL :-) I'm definitely getting older. Anyhow the max is 64K, so it should be updated accordingly to

Re: proxy returning apr_status_t to handler?

2007-12-10 Thread Graham Leggett
Eric Covener wrote: The particular instance I'm looking at is during the write of the post body. In this case I assume HTTP_BAD_GATEWAY should be returned from proxy_http instead of the status returned from pass_brigade? Ideally if sections are found when apr_status_t is sent instead of an

Re: proxy returning apr_status_t to handler?

2007-12-10 Thread Nick Kew
On Fri, 7 Dec 2007 17:55:40 -0500 Eric Covener [EMAIL PROTECTED] wrote: It seems like a network I/O error while sending an http proxy request will result in an apr_status_t being returned all the way up through the handler. You might want to read through the evolving story at

Re: time for 1.3.40 and 2.2.7 ?

2007-12-10 Thread Mladen Turk
Ruediger Pluem wrote: On 12/10/2007 08:31 AM, Mladen Turk wrote: Ruediger Pluem wrote: Are you talking about #define AJP_MAX_BUFFER_SZ 16384 in ajp.h? If yes, it was you in r467257 :-). ROTFL :-) I'm definitely getting older. Anyhow the max is 64K, so it should be updated

Re: time for 1.3.40 and 2.2.7 ?

2007-12-10 Thread Ruediger Pluem
On 12/10/2007 10:26 AM, Mladen Turk wrote: It is since 1.2.19, check for max_packet_size. http://tomcat.apache.org/connectors-doc/reference/workers.html Thanks for the pointer. Regards RĂ¼diger

Re: time for 1.3.40 and 2.2.7 ?

2007-12-10 Thread Jim Jagielski
On Dec 9, 2007, at 10:30 AM, Ruediger Pluem wrote: On 12/08/2007 04:04 PM, Ruediger Pluem wrote: On 11/27/2007 07:26 PM, Jim Jagielski wrote: With APR now out, I think we're close to releasing 1.3.40 and 2.2.7... Anyone opposed with that gameplan? There are 9 backport proposals

Re: svn commit: r602503 - in /httpd/httpd/branches/2.2.x: CHANGES STATUS modules/http/http_etag.c

2007-12-10 Thread William A. Rowe, Jr.
[EMAIL PROTECTED] wrote: Author: rpluem Date: Sat Dec 8 08:50:12 2007 New Revision: 602503 @@ -28,16 +28,16 @@ #include http_protocol.h /* For index_of_response(). Grump. */ #include http_request.h -/* Generate the human-readable hex representation of an unsigned long - * (basically a

Re: Apache memory usage

2007-12-10 Thread Stefan Fritsch
On Sunday 09 December 2007, Ruediger Pluem wrote: But I think your patch to server/protocol.c can be done much simpler. Can you try the following and let us know if this helps as well: Index: server/protocol.c === ---