Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Target Management » RSE services API concurrency ...(Are all RSE service APIs thread safe or are there any potential pitfalls ?)
RSE services API concurrency ... [message #656308] Fri, 25 February 2011 01:07 Go to next message
Alex Pitigoi is currently offline Alex PitigoiFriend
Messages: 17
Registered: July 2009
Junior Member
I am planning to use RSE services API in a parallel execution environment using SSH and SFTP protocols and I'd be interested to know if any part of the API was designed to support concurrency and which are certainly not thread safe. That being said, I am aware of the existing separation between GUI dispatch thread and the background ones.

Any hints and recommendations are very much appreciated.
Thanks,
Alex
Re: RSE services API concurrency ... [message #657867 is a reply to message #656308] Fri, 04 March 2011 12:11 Go to previous messageGo to next message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hi Alex,

for SftpFileService I'm pretty sure it is thread-safe because all access is guarded by fDirChannelMutex . The Mutex class itself also looks good.

For JSch itself I googled a bit and got mixed reports. There have clearly been problems with concurrency in the past, but the latest versions look good... even EXTENSIVE load testing of Sftp was successful.

I haven't yet looked at the new channel pooling in detail (SSHChannel came in as a community contribution through bug 256581), but I couldn't find any obvious problems.

I cannot make any statement about SSH Shell access.

So summing up, I think the services should mostly be good. That being said, it'll be your own responsibility how you apply them. But I think I can promise that if you find any concurrency issues and report them (ideally with a patch associated) these will be looked at with high priority.

HTH,
Martin
Re: RSE services API concurrency ... [message #657869 is a reply to message #656308] Fri, 04 March 2011 12:13 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
PS you might be interested hearing that http://aptana.com uses a different (commercial) SSH library in their Aptana Studio, which is also available as Eclipse plugins under GPL. I haven't looked at that other SSH library but thought that you might be interested.

There is also a third Java SSH library available (I think it's named Ganymed or so), and BouncyCastle might also provide SSH (not sure).
Previous Topic:rse links not refreshed properly
Next Topic:Projects loaded at startup - build problem
Goto Forum:
  


Current Time: Thu Apr 25 13:39:45 GMT 2024

Powered by FUDForum. Page generated in 0.03324 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top