Component was busy and got disconnected. - WeOnlyDo Discussion board

Component was busy and got disconnected. (wodSFTP / wodSFTP.NET / wodSFTPdll)

by tcotten, Saturday, September 19, 2009, 17:55 (5323 days ago)

I have version 3.2.4 of the wodSFTP component and I get this error when multiple threads hit the sftp server at the same time. I saw that this was an issue in the past and had been fixed I believe in 2.2.4?

Anyway, let me know what other information you need.

Thanks

Re: Component was busy and got disconnected.

by wodDamir, Saturday, September 19, 2009, 18:06 (5323 days ago) @ tcotten

Hi,

The error you are receiving means that component was in process of executing some method, and got disconnected for some reason.

What method was executed at that time?

Remember that when using component in threads, you need to keep it apartment threaded. This means that component can only be used in the thread it was declared and initialized in.

Regards,
Damba

Re: Component was busy and got disconnected.

by tcotten, Saturday, September 19, 2009, 22:02 (5323 days ago) @ wodDamir

There are two methods I seem to get this on:

GetFile
ListNames

And yes I believe it is correctly using Appartment threading as you said.

Thanks

Re: Component was busy and got disconnected.

by wodDamir, Saturday, September 19, 2009, 22:05 (5323 days ago) @ tcotten

Hi,

Is there any chance you could try the latest version available?

Also, if that doesn't work, is there any chance we could duplicate this issue?

Regards,
Damba

Re: Component was busy and got disconnected.

by tcotten, Saturday, September 19, 2009, 22:26 (5323 days ago) @ wodDamir

Yes, I will give that a try and if the update doesn't work I will attempt to setup a test scenario for you.

Thanks.