Victor J. Orlikowski
7ca521dfdf
After checking what this does with Bill Rowe, and discovering it to be dead
...
wood, I am tossing it.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89838 13f79535-47bb-0310-9956-ffa450edef68
2001-07-31 19:19:34 +00:00
Victor J. Orlikowski
5b38785f4b
Being slightly picky: properly namespace protect make_fake_req()
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89837 13f79535-47bb-0310-9956-ffa450edef68
2001-07-31 19:12:56 +00:00
Victor J. Orlikowski
de5ebc3740
Nobody screamed. ;)
...
This gets rid of ap_proxy_host2addr, and a few other useless functions,
and allows us to be threadsafe when doing DNS resolution.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89829 13f79535-47bb-0310-9956-ffa450edef68
2001-07-31 16:25:18 +00:00
Chuck Murcko
77e6035975
Reorganize ap_proxy_string_read() internally to not process eos buckets.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89473 13f79535-47bb-0310-9956-ffa450edef68
2001-06-28 12:48:57 +00:00
Victor J. Orlikowski
79686d250b
An EOS bucket doesn't contain anything, so why shouldn't we skip it?
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89471 13f79535-47bb-0310-9956-ffa450edef68
2001-06-28 07:05:18 +00:00
Chuck Murcko
bd71fdf9ac
Use apr-util's date functions now
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89280 13f79535-47bb-0310-9956-ffa450edef68
2001-06-06 21:51:58 +00:00
Ian Holsman
3032fea185
Allows Mod_proxy to be dynamically loaded on win32 systems
...
PR:
Obtained from:
Submitted by: ianh
Reviewed by: Chuck Murcko, Graham
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89085 13f79535-47bb-0310-9956-ffa450edef68
2001-05-11 17:32:41 +00:00
Chuck Murcko
109f7ebf1d
Crikey.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89044 13f79535-47bb-0310-9956-ffa450edef68
2001-05-07 02:47:51 +00:00
Chuck Murcko
ea5093e17f
Track Greg's change to byte count for input filters
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89037 13f79535-47bb-0310-9956-ffa450edef68
2001-05-06 10:59:22 +00:00
Graham Leggett
8366898180
Made the variable naming the same as everywhere else in Apache for the
...
ap_get_brigade() fix.
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88927 13f79535-47bb-0310-9956-ffa450edef68
2001-04-24 04:38:53 +00:00
Victor J. Orlikowski
704054f6d9
Just for the sake of cleanliness ...
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88926 13f79535-47bb-0310-9956-ffa450edef68
2001-04-24 02:50:19 +00:00
Graham Leggett
83e42d2157
Apply changes to ap_get_brigade() to the proxy code.
...
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88922 13f79535-47bb-0310-9956-ffa450edef68
2001-04-23 21:03:39 +00:00
Graham Leggett
f8425f7b81
Make hooks work for the *_canon() functions. Work continues.
...
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88854 13f79535-47bb-0310-9956-ffa450edef68
2001-04-14 07:03:00 +00:00
Graham Leggett
07e7e196f4
FTP directory filter works now.
...
Many FIXME notes added.
Much overhauling of proxy_ftp.c
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88817 13f79535-47bb-0310-9956-ffa450edef68
2001-04-12 01:57:48 +00:00
Graham Leggett
ce168dd27f
Make sure the filter stack in a reused downstream connection is reset
...
so we don't get lots of DECHUNK filters when we don't want them.
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88797 13f79535-47bb-0310-9956-ffa450edef68
2001-04-10 20:44:16 +00:00
Graham Leggett
056f85fe07
We now keep the entire conn_rec across downstream keepalives, not
...
just the socket.
Made the "keepalive mismatch" message more accurate.
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88793 13f79535-47bb-0310-9956-ffa450edef68
2001-04-10 19:52:40 +00:00
Graham Leggett
10c533558e
Compiler warnings - yuck!
...
Moved ap_proxy_string_read() to proxy_util.c so it can be used by
proxy_http.c
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88777 13f79535-47bb-0310-9956-ffa450edef68
2001-04-10 00:13:56 +00:00
Graham Leggett
7a742e7fd1
Bugfixes to proxy_ftp.c -> in some places uri_addr was used instead
...
of connect_addr - all hail cut and paste!
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88740 13f79535-47bb-0310-9956-ffa450edef68
2001-04-06 14:25:54 +00:00
Graham Leggett
5dd4149bc0
Converted send_dir() to ap_proxy_send_dir_filter() in proxy_ftp.c.
...
Fixed up the header files
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88739 13f79535-47bb-0310-9956-ffa450edef68
2001-04-06 10:44:08 +00:00
Graham Leggett
a43bb9db2e
Cleanup of dead functions within proxy_util.c.
...
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88732 13f79535-47bb-0310-9956-ffa450edef68
2001-04-05 18:53:04 +00:00
Graham Leggett
5f3bc1ebc9
Some code rewriting in ap_proxy_connect_handler():
...
*) Fixed bug where a hostname without a "." in it (such as "localhost")
would not trigger an IP address check with ProxyBlock.
*) Fixed ProxyBlock bugs with ap_proxy_http_handler() and
ap_proxy_connect_handler().
*) Updated ap_proxy_connect_handler() to support APR, while
moving some common code between http_handler and connect_handler
to proxy_util.c.
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88721 13f79535-47bb-0310-9956-ffa450edef68
2001-04-04 18:47:42 +00:00
Graham Leggett
d72c7d938e
*) Added support for downstream keepalives in mod_proxy.
...
*) Changed mod_proxy ap_proxy_http_handler() to support APR properly.
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88648 13f79535-47bb-0310-9956-ffa450edef68
2001-04-02 17:04:19 +00:00
Chuck Murcko
4fe4de4e33
reorganize STATUS; update copyright
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88534 13f79535-47bb-0310-9956-ffa450edef68
2001-03-19 08:54:41 +00:00
Chuck Murcko
448a3a6d3b
change INADDR_NONE to APR_INADDR_NONE
...
Submitted by: Ian Holsman <IanH@cnet.com >
Reviewed by: Chuck Murcko
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88525 13f79535-47bb-0310-9956-ffa450edef68
2001-03-16 05:49:51 +00:00
Graham Leggett
7c80013588
Pull in the Connection handling part of the v1.3 patch for HTTP/1.1.
...
Some preliminary HTTP/1.1 work
Some comments and fixes
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88518 13f79535-47bb-0310-9956-ffa450edef68
2001-03-14 21:16:41 +00:00
Chuck Murcko
1dcf2f7754
Cache removed, with other spooge
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88487 13f79535-47bb-0310-9956-ffa450edef68
2001-03-11 10:42:14 +00:00
Ryan Bloom
9d85d10c10
Fix any compile breaks after moving apr_snprintf and apr_vsnprintf to
...
apr_strings.h
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88077 13f79535-47bb-0310-9956-ffa450edef68
2001-02-11 00:12:43 +00:00
Doug MacEachern
88d3406f9a
renaming various functions for consistency sake
...
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88019 13f79535-47bb-0310-9956-ffa450edef68
2001-02-08 07:45:33 +00:00
Chuck Murcko
c9dc3847d2
Changes to get running on the current codebase
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88004 13f79535-47bb-0310-9956-ffa450edef68
2001-02-07 05:41:35 +00:00
William A. Rowe Jr
d038b40a6f
Fix the remaining APR_FINFO_NORM occurances. Again, followup is needed
...
to actually test any field outside the scope of APR_FINFO_MIN.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87935 13f79535-47bb-0310-9956-ffa450edef68
2001-01-31 23:11:05 +00:00
William A. Rowe Jr
cd1ef027c2
The changes required for the APR_FINFO_wanted argument to
...
apr_stat/lstat/getfileinfo. These are -NOT- optimal, they
are simply the required changes to get the server working.
The size of the patch is a warning about how we need to
really look at what we are trying to accomplish with all
of these stat/lstat calls.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87760 13f79535-47bb-0310-9956-ffa450edef68
2001-01-20 21:42:23 +00:00
William A. Rowe Jr
59bbd68bec
The big change. This is part 3 of the apr-util symbols rename, please
...
see the first commit of srclib/apr-util/include (cvs apr-util/include)
for the quick glance at symbols changed.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87731 13f79535-47bb-0310-9956-ffa450edef68
2001-01-19 07:04:36 +00:00
Jeff Trawick
351725e726
Switch to the APR-provided APR_CHARSET_EBCDIC feature test macro.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87460 13f79535-47bb-0310-9956-ffa450edef68
2000-12-20 16:44:01 +00:00
Ryan Bloom
b5440c348a
Force all Apache functions to be linked into the executable, whether they
...
are used or not. This uses the same mechanism that is used for APR
and APR-util. This may not be the correct solution, but it works, and that
is what I really care about. This also renames CHARSET_EBCDIC to
AP_CHARSET_EBCDIC. This is for namespace correctness, but it also makes
the exports script a bit easier.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87424 13f79535-47bb-0310-9956-ffa450edef68
2000-12-19 17:05:48 +00:00
Jeff Trawick
c17ef15818
API routines ap_pgethostbyname() and ap_pduphostent() are no longer
...
available. Use apr_getaddrinfo() instead.
The ap_pduphostent() code was moved to modules/proxy/proxy_util.c for
now since that is the only caller. When the proxy's use of the
resolver is APR-ized this won't be needed anymore.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87399 13f79535-47bb-0310-9956-ffa450edef68
2000-12-18 17:52:05 +00:00
Chuck Murcko
ac560d6d90
Restore Ryan's original intent in ap_proxy_doconnect() return value check
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87034 13f79535-47bb-0310-9956-ffa450edef68
2000-11-20 18:10:19 +00:00
Ryan Bloom
66078e0d34
More proxy fixes. There are still some bugs in this code, but this has
...
successfully proxied www.yahoo.com and www.ntrnet.net among other test
sites that I chose at random.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87001 13f79535-47bb-0310-9956-ffa450edef68
2000-11-18 03:17:21 +00:00
Chuck Murcko
2588d59598
fix apr_getaddrinfo() call
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86994 13f79535-47bb-0310-9956-ffa450edef68
2000-11-17 17:26:32 +00:00
Jeff Trawick
3463c8ca6c
APR: Change apr_connect() to take apr_sockaddr_t instead of hostname.
...
Add generic apr_create_socket(). Add apr_getaddrinfo() for doing
hostname resolution/address string parsing and building
apr_sockaddr_t.
Submitted by: David Reid
Reviewed by: Jeff Trawick
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86990 13f79535-47bb-0310-9956-ffa450edef68
2000-11-17 03:45:02 +00:00
Ryan Bloom
4baadb8ef1
This removes all BUFF's from the HTTP proxy. This code is relatively
...
ugly, but it does proxy pages. This even fixes the content-type bug
that I introduced yesterday sometime. As soon as BUFF is removed from
the FTP proxy, the buff.c and buff.h files need to go away.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86988 13f79535-47bb-0310-9956-ffa450edef68
2000-11-17 00:19:30 +00:00
Ryan Bloom
274c566f2b
Make the proxy work with filters. We are still using BUFF for the
...
back-end communication, but BUFF has been removed from the communication
with the client. The headers are not working correctly yet, but we are
making progress. The most important part of this commit is that we are
able to actually filter data coming from the proxy.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86978 13f79535-47bb-0310-9956-ffa450edef68
2000-11-16 01:57:46 +00:00
Chuck Murcko
4f9a6f576e
Simplify ap_proxy_doconnect(); now returns apr_status_t
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86961 13f79535-47bb-0310-9956-ffa450edef68
2000-11-14 17:15:11 +00:00
Ryan Bloom
91f3b21aa6
The whole proxy compiles cleanly now. Now we need to make it actually work
...
again, but at least we are making progress.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86928 13f79535-47bb-0310-9956-ffa450edef68
2000-11-11 18:34:10 +00:00
Ryan Bloom
c0fe0a6dfb
proxy_ftp and proxy_http both compile now. Not tested because the rest of
...
the proxy is still not compiling, but we are making progress.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86927 13f79535-47bb-0310-9956-ffa450edef68
2000-11-11 18:13:04 +00:00
Chuck Murcko
31c42a957c
This is the 1.3.x current proxy into 2.0 - first stage
...
PR:
Obtained from: Sam Magnuson
Submitted by: Chuck Murcko
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86923 13f79535-47bb-0310-9956-ffa450edef68
2000-11-11 11:07:03 +00:00
Ryan Bloom
c1c3267c14
Not all platforms have INADDR_NONE defined by default. Apache used to
...
check for this and the define it if needed. Since APR also needs this
check it makes more sense for APR to just check and export a symobl that
is always available.
Submitted by: Branko �ibej <brane@xbc.nu >
Reviewed by: Ryan Bloom
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86919 13f79535-47bb-0310-9956-ffa450edef68
2000-11-11 06:06:00 +00:00
William A. Rowe Jr
5c85623192
Missed it, a rather messy canonical error example.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86450 13f79535-47bb-0310-9956-ffa450edef68
2000-10-08 06:05:22 +00:00
Ryan Bloom
260f2cb9c8
Remove all compiler warnings from the proxy code. There are no garauntees
...
that this still works, but most of the changes were just const-safeness
changes.
PR: 6631
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86440 13f79535-47bb-0310-9956-ffa450edef68
2000-10-08 03:23:05 +00:00
William A. Rowe Jr
1a9db204f5
Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...
...
see src/lib/apr/apr_compat.h for most details.
Also a few minor nits to get Win32 to build.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86008 13f79535-47bb-0310-9956-ffa450edef68
2000-08-06 06:07:53 +00:00
Doug MacEachern
059d8dd212
prefix libapr functions and types with apr_
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85976 13f79535-47bb-0310-9956-ffa450edef68
2000-08-02 05:27:38 +00:00