Curl.ConnectTimeout (gb.net.curl)

Property ConnectTimeout As Float

Since 3.22

Returns or sets the client connection timeout in seconds.

The request will abort if the possible DNS resolution and connection takes more than the specified amount of seconds.

If the timeout is zero, then a default value of 300 seconds (5 minutes) is used.

The connection timeout is included in the general all-covering Timeout property:
  • With ConnectTimeout set to 3 and Timeout set to 5, the operation can never last longer than 5 seconds, and the connection phase cannot last longer than 3 seconds.

  • With ConnectTimeout set to 4 and Timeout set to 2, the operation can never last longer than 2 seconds. Including the connection phase.