On 2010-12-31 05.55, Tal Liron wrote:
> pool.) It's probably best to employ a try-finally paradigm, where the
> try clause contains as little code as possible, and the finally clause
> releases the response. See the example below.
>
> var fixture
> var resource =
> document.external('file:///myfiles/fixture.json','application/json')
> try {
> fixture = resource.get().text
>
> }
> finally {
> resource.response.release()
> }
So this, combined with Jerome's reply:
> >> 1) release() has the effect of closing the underlying TCP
> socket, preventing persistent connection reuse. So it can't be
> recommended to systematically call it.
basically means that we can't have persistent connection reuse on the
client. Correct or not?
/Rickard
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2695100