[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: proxy implementation



-----BEGIN PGP SIGNED MESSAGE-----

On Tue, 10 Jun 1997, Andrew Berkley wrote:

> Good work with the proxy protocol handler.  I wish we could find a way
> around modifying all the protocol handlers to add proxy calls (I suppose
> it is unavoidable).

It is only the HTTPHanlder that has to be modified, you see

proxy.txt says:

> 
> The layers
>        
> ---------------------
> -      ??           -
> ---------------------
>         |
> ---------------------
> -  Network Manager  -
> ---------------------
>         |
> ---------------------
> -  ProxyHandler     - ------------------------------
> ---------------------             |                |
>         |                         |                |
> ---------------------     --------------------  ----------
> -  HTTP             -     -  FTP             -  -  ....  -
> ---------------------     --------------------  ----------

This picture is very missleading. Correct me if I am wrong, but as I have
understood this the only ProtocollHandler the ProxyHandler needs to talk
to is the HTTPHandler.

If you have configured the ProxyHandler to use proxy.org as the ftp proxy,
and the url ftp://ftp.funet.fi/README is asked for, then the ProxyHandler
should use the HTTPHandler to make a http connection to proxy.org and ask
for the object ("location") ftp://ftp.funet.fi/README.

This way the proxy should not need to know the slightes about any of the
protocolls it is requesting, except which server the user has specified as
proxy server in the config.

> 
> Your way provides for an easy method for configuring the proxy stuff (the
> proxy handler provides it's own config form) -- once the display manager
> gets far enough along to start handling config issues, we can make the
> config manager do the HTML form configuration method correctly, so we can
> have all sorts of need configuring going on.

In this case we want the user to be able to specify a infinite list of
protocol - host/port connections. Where we do not know the protocolls from
the beginning, and since this will probably be the case in other places
too we should probably add some sort of suport for that in the
ConfigManager, don't know how though...

- ---------------------------------------------------------------
 Name:        Hakan Ardo
 E-Mail:      hakan@debian.org
 WWW:         http://www.ub2.lu.se/~hakan/sig.html
 Public Key:  Try "finger hakan@master.debian.org"
 Fingerprint: E9 81 FD 90 53 5C E9 3E  3D ED 57 15 1B 7E 29 F3
 Interests:   WWW, Programming, 3D graphics

 Thought for the day: As long as one understands, the
 spelling does not matter :-)
- ---------------------------------------------------------------

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQCVAwUBM50at96dx9igIm71AQEObAQA13pnuWyh+dJgu+2ybl42TSukP15qzbdN
2oDIfwbovTyrGH4LcLv6deeK/8c3567XUr4ibUSpoq+I1TejdzT8qlaMISAJegus
6k2fqq0nzMh4t9gKPFL0ddZ1crlaBCKfYQkDEyWzz8vnsHULy+sVWWbdvu1xwcI+
WyuUC0QI8FU=
=u+u2
-----END PGP SIGNATURE-----