HTTPTunnel

4 views
Skip to first unread message

shan muh

unread,
Jun 25, 2008, 5:22:16 PM6/25/08
to one-stone-soup
Hi,

Why the HTTPTunnel is commented in the client and server code ? It
seems that everything is there to work properly but it is
desactivated, why ?

Best regards
Shan

nicholas....@googlemail.com

unread,
Jun 25, 2008, 5:37:31 PM6/25/08
to one-stone-soup
Hi Shan,
The HTTPTunnel would probably work but needs the HubServer integrated
into an Application Server probably as a Servlet. This work was never
started due to other commitments. Feel free to try and implement it.
If you get it working, please post the code back to the project.

shan muh

unread,
Jun 26, 2008, 6:28:47 PM6/26/08
to one-stone-soup
Hi Nicholas,

Today, I see in the current implementation there is two flows which is
used : one for screen and an other one for control. Each flow use
their own socket (screen Socket and control Socket). The problem is
that the request for next screen is send on the control socket and the
response is send back on the screen socket (correct me if I'm wrong).
So this will not be easy to setup an HTTP tunneling when the request/
response is not made on the same socket. I think the current design
should be sligthly changed in order to do the request/response of the
screen frame on the same socket. In that way, the HTTP GET/HTTP 200 OK
will be used on the screen flow and the only HTTP POST/HTTP 200
OK(empty body) model can be used on the control flow.

My question is to know your though about that and also the amount of
work to change the request/response model inside the client/server
code

Best regards
Shan

nicholas....@googlemail.com

unread,
Jun 27, 2008, 2:02:56 PM6/27/08
to one-stone-soup
The frame control is on a separate socket to enable communication
through HTTP. The frame data would be sent as the result of a GET
request. The control data would be sent as the data in a POST request.
Trying to mix send and retrieve data over a single HTTP connection is
blocked by some proxies. Opening two HTTP connections is not a problem.
Reply all
Reply to author
Forward
0 new messages