0 votes
by (790 points)

In the release notes for Rebex HTTPS for .NET there is one interesting change:

HTTP: Very small timeouts (<1000) in HttpRequest.Timeout are treated as 1000 (one second).

Can we override this behaviour? We use short timeouts (some milliseconds) to provoke timeouts in test scenarios, which catch HTTP request/response timeouts. Those one will fail with the new version.

Applies to: Rebex HTTPS

1 Answer

0 votes
by (147k points)
edited by

Update: In Rebex HTTPS R5.7 and higher, you can override the Timeout value check by assigning the timeout value this way:

Rebex.Security.Cryptography.CryptoHelper.SetOption(request, "Timeout", timeout);

(Where request is an instance of HttpRequest.)


Oops, sorry for the inconvenience! It's not possible to override this, but we'll do something about it. In the meantime, if you need a hotfix build with this change disabled, please contact us at support@rebex.net!

by (790 points)
Thank you, we’ll wait for the next version, which (hopefully) allows shorter timeouts again.
by (147k points)
Please see the updated answer for a workaround in R5.7 or higher.
...