Ian Holsman
4318882a79
Remove APR_NO_INHERIT as it is now private.
...
sigh... the cost of being bleeding edge
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89607 13f79535-47bb-0310-9956-ffa450edef68
2001-07-18 20:35:13 +00:00
Ian Holsman
175af69f8e
Change the APR_INHERIT flag to APR_NO_INHERIT,which is the default (as recommended by rbb)
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89569 13f79535-47bb-0310-9956-ffa450edef68
2001-07-17 21:43:35 +00:00
Ian Holsman
eef8a5ccff
applies change in APR function apr_socket_create, which added a new parameter.
...
I defaulted these to APR_INHERIT.
Also..
the connection-close was being merged, insted of 'set'
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89559 13f79535-47bb-0310-9956-ffa450edef68
2001-07-16 17:54:38 +00:00
Ian Holsman
9467f6ad75
Last Log entry was bogus.
...
Changed to 'setting' the X-Forwarded-Server X-Forwarded-Host X-Forwarded-For
headers instead of merging them
PR:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89551 13f79535-47bb-0310-9956-ffa450edef68
2001-07-14 20:18:45 +00:00
Ian Holsman
f99ed71713
PR:
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89550 13f79535-47bb-0310-9956-ffa450edef68
2001-07-14 20:17:07 +00:00
Victor J. Orlikowski
3bb89937f4
Remove a couple of extraneous calls to apr_brigade_cleanup()
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89489 13f79535-47bb-0310-9956-ffa450edef68
2001-07-02 03:37:37 +00:00
Chuck Murcko
6383dfad3b
Fix abort code path for HTTP proxy. Similar to Victor's patch for FTP
...
proxy. No, Julia, it really *is* a double negative.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89486 13f79535-47bb-0310-9956-ffa450edef68
2001-06-30 04:50:31 +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
Victor J. Orlikowski
0382ec68fa
YAPJBUJ.
...
(Yet Another Proxy Janitor Botched-Up Job).
Need to be looking for APR_SUCCESS here, not HTTP_OK.
Obtained from: Justin Erenkrantz
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89213 13f79535-47bb-0310-9956-ffa450edef68
2001-05-23 06:43:46 +00:00
Victor J. Orlikowski
a040b3c7bf
Bletch. The Proxy Janitor botches the job again.
...
Thanks to Ian Holsman for the catch.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89210 13f79535-47bb-0310-9956-ffa450edef68
2001-05-23 03:39:44 +00:00
Victor J. Orlikowski
2a5472f674
Fixes to proxy, after util-uri move, plus fixes to the .mak file.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89204 13f79535-47bb-0310-9956-ffa450edef68
2001-05-22 19:37:13 +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
Victor J. Orlikowski
2a62baa1bc
Shut the compiler up.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89052 13f79535-47bb-0310-9956-ffa450edef68
2001-05-07 20:02:39 +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
ba986d2e6b
Stopped the HTTP proxy from trying to read entity bodies when there
...
wasn't one (response was 1xx, 204, 205 or 304).
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88928 13f79535-47bb-0310-9956-ffa450edef68
2001-04-24 08:38:43 +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
f51e69676f
Sometimes, boys and girls, pointers and integers *aren't interchangeable.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88923 13f79535-47bb-0310-9956-ffa450edef68
2001-04-23 21:49:15 +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
b0796df50f
Made sure dates were canonicalised correctly when passed to the client
...
browser through the HTTP proxy.
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88898 13f79535-47bb-0310-9956-ffa450edef68
2001-04-19 21:18:41 +00:00
Graham Leggett
22ebd698df
Split each individual proxy protocol into separate modules.
...
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88866 13f79535-47bb-0310-9956-ffa450edef68
2001-04-15 17:15:29 +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
0a9f4ce887
Initial support for proxy protocol handler sub-modules. Work continues.
...
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88853 13f79535-47bb-0310-9956-ffa450edef68
2001-04-13 23:56:04 +00:00
Graham Leggett
5345c51dbc
Fixed all the APR error codes to make sure they end up in the logfiles
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88846 13f79535-47bb-0310-9956-ffa450edef68
2001-04-13 15:30:32 +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
c439858c4c
Fixed some thread-safety issues with the HTTP proxy in mod_proxy.
...
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88814 13f79535-47bb-0310-9956-ffa450edef68
2001-04-11 23:07:21 +00:00
Graham Leggett
edfc2c2ae9
Small fixes.
...
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88800 13f79535-47bb-0310-9956-ffa450edef68
2001-04-10 21:31:10 +00:00
Graham Leggett
98f1c62883
A client POST request would be read entirely into RAM before sending it
...
on the client - a potential DoS. Fixed.
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88799 13f79535-47bb-0310-9956-ffa450edef68
2001-04-10 20:55:05 +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
78aaa15794
Memory allocation cleanups
...
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88779 13f79535-47bb-0310-9956-ffa450edef68
2001-04-10 09:30:12 +00:00
Graham Leggett
d861bced35
Change HTTP proxy to use ap_proxy_string_read() instead of apr_brigade_read()
...
to make sure all the buckets are read...
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88778 13f79535-47bb-0310-9956-ffa450edef68
2001-04-10 00:45:02 +00:00
Graham Leggett
a3f6f6dd0a
HTTP_VERSION() is the correct way to do this...
...
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88769 13f79535-47bb-0310-9956-ffa450edef68
2001-04-08 16:29:30 +00:00
Graham Leggett
7f6c1eb35c
Add #defines for protocol version checks...
...
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88765 13f79535-47bb-0310-9956-ffa450edef68
2001-04-08 09:49:49 +00:00
Graham Leggett
3d6586f985
Downstream keepalives in mod_proxy should not kick in if the upstream
...
client is < HTTP/1.1
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88754 13f79535-47bb-0310-9956-ffa450edef68
2001-04-07 19:41:03 +00:00
Graham Leggett
e9a12935d1
Sockets weren't being closed if the proxy could not connect to
...
a remote machine...
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88751 13f79535-47bb-0310-9956-ffa450edef68
2001-04-07 14:06:13 +00:00
Graham Leggett
a3bab88b26
Fixed problem where the port was left at zero on requests instead of
...
being set to the default scheme port 80
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88746 13f79535-47bb-0310-9956-ffa450edef68
2001-04-07 12:24:38 +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
Victor J. Orlikowski
3d4e9fbed5
More pool allocation errors. The apr_sockaddr_t structures connect_addr and
...
uri_addr were getting allocated out of the wrong pool (one of the request pools)
when they were expected to stick around for the life of the socket.
Further, the default pool to be used should have been the connection pool in the
request_rec.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88737 13f79535-47bb-0310-9956-ffa450edef68
2001-04-06 01:59:26 +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
afce43baa9
Reworked the storage of the client socket between keepalive connections
...
to fix some nasty problems with the socket lasting longer than the
memory pool it was allocated from.
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88730 13f79535-47bb-0310-9956-ffa450edef68
2001-04-05 18:25: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
b924ea846d
Fixing a few compiler warnings with mod_proxy
...
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88659 13f79535-47bb-0310-9956-ffa450edef68
2001-04-02 21:19:22 +00:00
Graham Leggett
0628baf027
Fixed problem where responses without entity bodies would cause
...
the directly following proxy keepalive request to fail.
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88657 13f79535-47bb-0310-9956-ffa450edef68
2001-04-02 20:55:23 +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
Graham Leggett
8f6431df56
Header Bugfix / General Cleanups in ap_proxy_http_handler / X-Forwarded-* headers
...
PR:
Obtained from:
Reviewed by: Chuck Murcko
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88579 13f79535-47bb-0310-9956-ffa450edef68
2001-03-25 20:23:25 +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
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