Ingo Brunberg wrote:

> No, Slide's WebDAV client library does not use the
> MultiThreadedHttpConnectionManager, although changing this would be
> straightforward. Perhaps we should make this configurable or simply
> use that by default.

There's is one issue, you must call method.releaseConnection() after
you're done with your method. It's simple to go through all methods and
add a finally clause to release the connection after use, except for one
place: the getMethodData that returns an InputStream. You can't release
the connection until the body has been read, and in this case you don't
know when that happens. One solution is to wrap the InputStream in a
proxy that holds a reference to the Method so it call
releaseConnection() when InputStream.close() is invoked.

With the current state of WebdavResource is difficult or rather tedious
to make it optional. To do this cleanly, is better to first factorize
all Method execution through a single utility function. Then it can be
changed in only one place and easier to make it configurable.

Carlos



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

Reply via email to