You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Likely meant to pass as the last arg. Recommend to use TimeSpan.FromMinutes() or FromSeconds() rather than new() to make time unit obviously clear.
The text was updated successfully, but these errors were encountered:
sergey-s-s
changed the title
Nethereum is using http connection lifespan and idle timeout of 1 hour - too high
Nethereum is using http connection lifespan and idle timeout of 1 hour - too long
Feb 13, 2024
Better commit, the original was reusing the value of http client recreation for older frameworks, these are more specific values, that allow for longer requests but no 60 minutes (that is too long)
Nethereum is using http connection leftspan of 1 hour - too high.
Despine the name (NUMBER_OF_SECONDS_TO_RECREATE_HTTP_CLIENT = 60), it is acutally the number of minutes as it is passe as 'minutes' param to TimeSpan:
see https://github.com/Nethereum/Nethereum/blob/master/src/Nethereum.JsonRpc.RpcClient/RpcClient.cs#L73
Likely meant to pass as the last arg. Recommend to use TimeSpan.FromMinutes() or FromSeconds() rather than new() to make time unit obviously clear.
The text was updated successfully, but these errors were encountered: