Declared in: EDBMMHttp
Public constants exported by the library. All timeout values are in
milliseconds and apply to the HTTP layer shared by
TMMConnection, TMMScript, and
TMMUpdater.
const
HTTP_TIMEOUT_PING = 10000; // 10 s -- ping only
HTTP_TIMEOUT_DEFAULT = 30000; // 30 s -- one-shot actions
HTTP_TIMEOUT_UPLOAD = 60000; // 60 s -- per upload chunk
HTTP_TIMEOUT_QUERY = 120000; // 2 min -- server-side DDL/DML
HTTP_TIMEOUT_RUN = 300000; // 5 min -- script execution
HTTP_TIMEOUT_BLOB = 1800000; // 30 min -- BLOB/CLOB and result pages
| Constant | Value | Used for |
|---|---|---|
HTTP_TIMEOUT_PING |
10 s | TMMConnection.Ping |
HTTP_TIMEOUT_DEFAULT |
30 s | TestConnection,
GetColumnInfo,
GetTableColumns |
HTTP_TIMEOUT_UPLOAD |
60 s | Each upload chunk during TMMScript.Execute |
HTTP_TIMEOUT_QUERY |
2 min | Server-side DDL/DML execution |
HTTP_TIMEOUT_RUN |
5 min | Script execution phase of TMMScript.Execute |
HTTP_TIMEOUT_BLOB |
30 min | BLOB/CLOB transfer, result page fetches, TMMUpdater.Execute
chunks |
All timeouts are fixed at compile time and cannot be changed at run
time, with one exception: TMMConnection.TimeoutMs,
when non-zero, overrides HTTP_TIMEOUT_PING and
HTTP_TIMEOUT_DEFAULT for Ping and
TestConnection on that connection.