You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Mathias Stödtler <m....@alea.de> on 2008/07/07 08:51:14 UTC
VFS HTTPClient Timeout
Hi,
We're using apache VFS and Http-Filesystem for our development.
So the
http file system is somewhere far from the client. If somehow
the
connection is lost (e.g. cable cut) VFS hangs until the
connection can
be established again.
I'm searching for a way to set a timeout to the HTTP Filesystem
but
actually found nothing in documentation how to do this.
I tried by setting:
DefaultHttpParams.getDefaultParams().setIntParameter(HttpConnectionParams.SO_TIMEOUT, 10);
DefaultHttpParams.getDefaultParams().setIntParameter(HttpConnectionParams.CONNECTION_TIMEOUT, 10);
DefaultHttpParams.getDefaultParams().setIntParameter(HttpMethodParams.SO_TIMEOUT, 10);
but all had no effect.
Can anybody help?
Thanx in advance!
Mathias
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org