Hi all, Last Friday, Thierry and I have fixed this thread issue.
This was caused by an attempt to reuse persistent connections that weren't as free as expected because there was a pending response entity to be read. We now detect correctly this state and attempt to reuse a truly free connection or to open a new one (up to the max number of concurrent connections allowed per host). However, you should still take care of consuming or exhausting ALL response entities to allow connections to be reused or collected! We will put some timeout mechanism in place in the future to close such connections after a given timeout, with proper traces. Also, we have cleaned and refactored the related code based on your comments. The latest snapshot has the fix and this will part of 2.0 RC3 to be released at the end of the month. Best regards, Jerome Louvel -- Restlet ~ Founder and Technical Lead ~ http://www.restlet.org Noelios Technologies ~ http://www.noelios.com -----Message d'origine----- De : Thierry Boileau [mailto:[email protected]] Envoyé : vendredi 9 avril 2010 13:35 À : [email protected] Objet : RE: Re: Re: Re: Suspended thread doing Client.put Hello, in this case, the entity has been consumed, directly from the socket and cannot be read again. The benefit from this approach is that such representations (the class of the representation should be InputRepresentation) has a minimal impact on memory (the representation is not stored), but at the same time, they can only be read once. If you want to reuse the content of the entity, you can dump it into a String, or a StringRepresentation. Having said that, this raises the case where the DomRepresentation is instantiated with a unavailable representation... There should be an error, or a trace something that keep you informed. I check that. Best regards, Thierry Boileau ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=25315 96 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2588967

