Re: Timeout question - WeOnlyDo Discussion board

Re: Timeout question (General questions)

by wodDamir, Thursday, February 14, 2008, 10:24 (6127 days ago) @ r0m1k

Roman,

The Timeout property is used by the component to determine how long idle time it should wait before disconnecting from the server. The idle time is time when there are no transfers active, and the state is 4 ( Connected to server - idle. ). If that time reaches the time set in Timeout Property, the component will disconnect.

As for the other question, you are correct. The component will abort the Connect method if it reaches the timeout period without making a successfull connect.

The timeout property doesn't interact with other operations like Listing directories, uploading, downloading etc. In that case, the component isn't idle.

As for your last question, you can't. The component will always automatically disconnect from the server if Timeout period is reached. You can, ofcourse, set Timeout property to 0 to completely prevent component from disconnecting automatically. You can also change Timeout during a *live* connection.

Hope I helped.

Regards,
Damba


Complete thread: