Re: Why WebdavSession close HttpConnection ?
Antoine Levy-Lambert <[email protected]> Wed, 21 Feb 2007 19:21:30 -0500
| Newsgroups | gmane.comp.jakarta.slide.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello Guillaume, can you build httpclient from the most recent sources, or try at least the latest release (4.0-alpha3) http://jakarta.apache.org/site/downloads/downloads_httpcomponents- httpcore.cgi see http://jakarta.apache.org/httpcomponents/index.html the slide sources on svn are compatible with httpclient 3.0. if the head revision of httpclient indeed has a bug, and if this bug has not been reported yet (probably in JIRA) https://issues.apache.org/jira/browse/HTTPCLIENT then the best thing would be to open a JIRA ticket for it. I should upgrade the jars which are checked in in SVN with slide to the latest released versions too, and adapt the build files accordingly. Best regards, Antoine On Feb 21, 2007, at 8:33 AM, Guillaume Bailleul wrote: >> you are right, WebdavSession.closeSession() closes the >> HttpConnection. >> >> How would you like to change the code ? >> > > I'm not sure, but I think closing the HttpConnection is the role of > the HttpConnectionManager. > In the current source, WebdavSession uses a > SimpleHttpConnectionManager, so there is not really a problem. > > I try to do some mods to use the multithread connection manager. There > is a bug in commons-httpclient : the close on a connection does not > modify the connection counter in the manager, after some > webdav.closeSession your pool has no more connections. > > I'm thinking in cleaning and releasing the connection in the manager > in the closeSession. > > What do you think of my idea ? > >