[JDEV] HTTP proxy

Dariusz Taczalski taczalski at medialogic.it
Tue Oct 16 14:40:52 CDT 2001

On Tue, 16 Oct 2001 19:14:29 +0530, "Ashvil" <ashvil at i3connect.net> wrote :

> The PUT method documented assumes a persistent connection. Most HTTP
> does not allow a persistent connection or block any request responses
> the first. The method actually works if you can get a persistent HTTP
> connection.
> MSN and Yahoo messengers support HTTP proxies and the way they do this is
> polling every few seconds using a cookie or session request identifier.
> I know this is a horrible way, but try explaining that end-users who are
> behind an HTTP proxy.

A agree - that is a horrible way. I think there is a better one
(not my idea): to have one connection (ex. GET method) for downstream,
and a second one opened permanently (PUT) or reopened for every
chunk of data (POST) for upstream. This uses twice much connections,
but at least:
1. the whole system (client + proxy + server) sleeps
   when there is no activity, and
2. we really know when the client disconnects (what is
   important to correctly deal with the presence) :
   when it closes the downstream connection.
   (and not after a timeout in the polling case)

> I don't know what the Jabber folks think of supporting this kind of
> but they need to do this if they want to compete with MSN and Yahoo IM
> systems.

Robert Temple <Robert.Temple at dig.com> wrote :
> I think AIM supports HTTP polling now too.

What about the superior method ?


More information about the JDev mailing list