Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [stellation-res] checkin core revision main@@7, misc workspace changes

On Monday 22 July 2002 09:43 am, Dave Shields wrote:
> 2002-07-22    <shields@xxxxxxxxxxxxxx>
> 	Make sure connection is properly closed by using finally clause
> 	after processing a command. I'm still not sure why there are both
> 	close() and closeHandles() methods in Connection.

Because when you're working with server code, you close the connection
to the server after you're done talking to the server. But you don't want
the handles to get closed, because that would, in turn, close off the
Inputs that are used for any ZipInput's driven off of that handle. 

In cases like merge,  you want to close the handle to the server, but
keep the input's alive until after they're done being used.  So 
close doesn't always close the handles. When you close a workspace,
it makes sure that the handles get closed, which closes the ZipInputs
created by the remote access code, which in turn deletes the temporary
zip files.

	-Mark

>
> By the way, note that I edited ChangeLog via xemacs, and suggest others
> format their additions accordingly (though of course this is not required).
>
> dave

-- 
Mark Craig Chu-Carroll,  IBM T.J. Watson Research Center  
*** The Stellation project: Advanced SCM for Collaboration
***		http://www.eclipse.org/stellation
*** Work Email: mcc@xxxxxxxxxxxxxx  ------- Personal Email: markcc@xxxxxxxxxxx




Back to the top