Calling API tick stop on 50 values

edited August 2017 in General

Hello.
I'm running (with a C# program) API method **ticks ** with **R_100 ** within a loop and stops on 50 calls. Please, why?
Thanks.

Comments

  • Visual Studio has a default timeout of 100 seconds on any HTTP or websocket connection. If you add the following line of code before setting up the connection:

    ServicePointManager.maxIdleTime = int.MaxValue;
    

    that should prevent the timeout. Please note that this affects all other HTTP connections in the same program - alternative websocket implementations such as websocket4net don't have this issue.

Sign In or Register to comment.