Back to product page

Timeout property


Timeout before file transfer is closed for inactivity, in seconds.

Type

Long

Syntax

  • Basic
object.Timeout [= value]
The Timeout(object,value) syntax has these parts:
objectAn expression evaluating to an object of type XMPPFile
valueA Long value.

Remarks

Timeout is a way of protecting Files collection from 'ghost' objects that were never replied to from remote side. It is possible that remote side ignores our file transfer requests - in which case File object would be part of collection that will *never* be removed.

This way, after certain amount of inactivity (default 120 seconds), FileTransferEnd event will fire with 'timeout' error, and File will be removed from the connection. Same thing would apply if file transfer started, but stopped for some reason and there was no data exchange for specified amount of time.

Platforms

Windows