1
0
mirror of https://github.com/apache/httpd.git synced 2025-11-06 16:49:32 +03:00
Commit Graph

21 Commits

Author SHA1 Message Date
Mladen Turk
5cc48386c4 Always use prive connection pool for allocation, and call
apr_pool_clear when the connection is closed on recycle, so
that we don't leak on persistent connections.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105108 13f79535-47bb-0310-9956-ffa450edef68
2004-09-13 11:13:28 +00:00
Joe Orton
e75696f56e Fix format string warnings in proxy_ajp on 64-bit platforms:
* modules/proxy/ajp_header.c (ajp_send_data_msg): Use
APR_SIZE_T_FMT.

* modules/proxy/ajp_link.c (ajp_ilink_receive): Don't pass
\n to ap_log_error; do use APR_SIZE_T_FMT.

* modules/proxy/ajp_msg.c (ajp_msg_dump, ajp_msg_check_header,
ajp_msg_copy): Use APR_SIZE_T_FMT.
(ajp_log_overflow): New function.
(ajp_msg_{append,peek,get}_*): Use it.

* modules/proxy/proxy_ajp.c (ap_proxy_ajp_request): Use
APR_SIZE_T_FMT.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105071 13f79535-47bb-0310-9956-ffa450edef68
2004-09-11 09:57:12 +00:00
Mladen Turk
9e235eb876 Fix compile time warnings (logging pointer and unused var).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105060 13f79535-47bb-0310-9956-ffa450edef68
2004-09-10 14:48:20 +00:00
Mladen Turk
ced8a94089 Add function protos so that -Wmissing-declarations doesn't complain.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105055 13f79535-47bb-0310-9956-ffa450edef68
2004-09-09 19:56:30 +00:00
Jean-Frederic Clere
72e9dc7a50 Process request and response in ap_proxy_ajp_request() that the only
way to process GET_BODY_CHUNCK after SEND_HEADER and SEND_BODY_CHUNK.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104764 13f79535-47bb-0310-9956-ffa450edef68
2004-08-21 19:27:24 +00:00
Jean-Frederic Clere
6442f7203e Arrange the logic sending to body data to Tomcat.
Now it works for both chunked and not-chunked.
But it is not yet working when the Tomcat starts to send data before having
read all the body and then reads again.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104717 13f79535-47bb-0310-9956-ffa450edef68
2004-08-18 17:04:45 +00:00
Jean-Frederic Clere
244f2d8f39 Sorry there were 2 typos
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104716 13f79535-47bb-0310-9956-ffa450edef68
2004-08-18 16:53:50 +00:00
Jean-Frederic Clere
0b2a0d6e35 Typo.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104715 13f79535-47bb-0310-9956-ffa450edef68
2004-08-18 16:49:46 +00:00
William A. Rowe Jr
0c15126a6c Fix the return codes. We can not return the APR error codes.
Submitted by: mturk


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104621 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 23:08:04 +00:00
William A. Rowe Jr
392a44c544 Remove setting module config.
Submitted by: mturk


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104607 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 22:51:34 +00:00
William A. Rowe Jr
2b663aafd6 Bounding to client connection is not needed(?).
Since AJP can serve multiple request trough the same
backend connection, no need to create separate conn_rec.
For now comment out all the set/get module config.

Submitted by: mturk


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104605 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 22:46:31 +00:00
William A. Rowe Jr
abfd8529a3 Use the new connection pool for AJP.
Submitted by: mturk


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104604 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 22:45:51 +00:00
William A. Rowe Jr
00e08062c1 Well, we still need that casting :)
Submitted by: mturk


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104564 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 20:48:40 +00:00
William A. Rowe Jr
0ee93490bb Use ajp scheme when doing canonicalise.
Submitted by: mturk


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104563 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 20:48:15 +00:00
William A. Rowe Jr
831061aa27 Rename parse_headers to parse_header.
Some renaming and style cleanup.

Submitted by: mturk


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104562 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 20:46:29 +00:00
William A. Rowe Jr
3eaf1a226c Close only when needed.
Submitted by: jfclere


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104561 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 20:44:40 +00:00
William A. Rowe Jr
8d4e9e7eca Use protocol handler defines instead fixed numbers.
Makes more sense what's happening.

Submitted by: mturk


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104560 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 20:44:08 +00:00
William A. Rowe Jr
2183c81376 Added include "ajp.h", and made some casting
Submitted by: mturk


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104559 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 20:43:05 +00:00
William A. Rowe Jr
f9d74acee9 Add the logic to read the body.
Submitted by: jfclere


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104558 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 20:42:00 +00:00
William A. Rowe Jr
ced378ded2 Clean useless code.
Submitted by: jfclere


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104557 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 20:41:23 +00:00
William A. Rowe Jr
900bd3c260 Introduce proxy_ajp.c : use --enable-proxy-ajp with configuring Apache.
To load it:
+++
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
+++

And to use it something like:
+++
<Location /examples/>
ProxyPass ajp://backend.example.net:8009/examples/
</Location>
+++

proxy_ajp will not be enabled by default due to ./ajp dependencies

Build magic improvements: mturk, wrowe

Submitted by:  jfclere


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104556 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 20:29:46 +00:00