Hi

> If I understand your question, there's no good way around this if you
*must* use an HTTP call. HTTP is all about stateless, quick-hit requests,
and it sounds like you're aiming for more of a stateful, constant-connection
protocol.  Furthermore, if you're opening connections to different hosts
each time, then reusing the same socket is moot anyhow.

Not absolutely.

You could use a HTTP Client library, which understands http 1.1 (if the
server in questions does), and put connections into a central
Map<HostName,Connection>. If queries for the same host occur, you could
reuse them, if they are not timed out.

This will imply a lot of synchronization and timer programming though.

Maybe there is a package, which already does this? May be even
commons-httpclient? I dunno.

Regards,
  Steffen


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to