C# .Net Core program does not stop and hangs the application if we have multiple sftp connections open.

0 votes
asked Jun 21 by mayank1707 (280 points)
edited Jun 21 by mayank1707

I have a situation where I need to connect to multiple sftp/ftp hosts in parallel from the application. When I try to stop the application, it does not respond to OnStop event and hangs.

If we check the task manager, we observe that CPU is ~0 and threads are getting increased continuously but nothing is happening.

The application might finally respond to OnStop event and stop after a long delay. But we can not have the application non responsive for such a long period.

You can download the test app from below link and repro the issue.
https://drive.google.com/file/d/12-sCts7DY2VSvY2EeOHmgNkFz2BYG1mb/view?usp=sharing

I verified this issue is not present with latest version of FileTransferPack. We are using version 4.0.6930. We can not update the version. The reason can be found in my another question http://forum.rebex.net/10469/performance-issues-between-different-versions-rebex-transfer

Applies to: Rebex SFTP

1 Answer

0 votes
answered Jul 17 by Lukas Matyska (54,110 points)

Please, see our reply at the related question.

...