I can't say about whether or not there is a limit on SSH, but in looking at your code,do you think you could be consuming too many filehandles in your process?
You might want to use ProcessExplorer or some such to see if the filehandle resources are getting freed up?
You might want to use ProcessExplorer or some such to see if the filehandle resources are getting freed up?







