tsNetSetTimeouts

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
tsNetSetTimeouts <pDnsCacheTimeout>, <pRequestTimeoutMS>, <pConnectTimeoutMS>, <pAcceptTimeoutMS>, <pLowSpeedTime>, <pLowSpeedLimit>
Associationstsnet
Summary

Adjust the timeout values used by tsNet external.

EditionIndy
Introduced8.1
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
pDnsCacheTimeout

tsNet caches DNS responses for a default time of 60 seconds. The value for this parameter (in seconds) will override this default.

pRequestTimeoutMS

By default, tsNet does not limit the length of time a request can take. This parameter will set a maximum number of milliseconds the entire request can take. Set this to 0 to not enforce a limit.

pConnectTimeoutMS

This parameter sets the length of time in milliseconds that the external will wait for the initial connection to the server to be established. The default is 300000 milliseconds.

pAcceptTimeoutMS

For active FTP connections, this parameter sets the length of time in milliseconds that the external will wait for the FTP server to connect back to tsNet when establishing the data stream. The default is 60000 milliseconds.

pLowSpeedTime

This parameter defines the time period in seconds that is used to calculate whether or not the transfer has fallen below the low speed limit set by pLowSpeedLimit. Set this to 0 to disable this feature.

pLowSpeedLimit

If the speed of transfer falls below this number of bytes per second (over the time period specified by pLowSpeedLimit) then the connection will be aborted. Set this to 0 to disable this feature.

Example
tsNetSetTimeouts 30, 0, 300000, 60000, 30, 1000
RelatedLibrary: tsNet
Description

Adjust the timeout values used by tsNet external.

Tagsexternals