Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Fixes to support distributed scenario #61

Merged
merged 1 commit into from
Sep 2, 2014
Merged

Fixes to support distributed scenario #61

merged 1 commit into from
Sep 2, 2014

Conversation

mikary
Copy link
Contributor

@mikary mikary commented Aug 26, 2014

Added parameter for TestController to allow agents to connect to remote host
-Using CmdLine package to simplify argument parsing #17

Catching exceptions from Json serializer that caused agent to crash when worker trace messages are written to standard output

Using thread-safe collection for worker connections

Force copy of Microsoft.Web.Infrastructure.dll to run TestController app on full IIS - Not GAC'd
@abnanda1 @davidfowl

OnMessage(Id, message);
OnMessage(Id, message);
}
catch (Exception) { }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we swallowing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The DeserializeObject call blows up when the worker's SignalR clients write trace messages to standard output. When we tried sending these messages back to the TestController, the agent was crashing (I presume due to some kind of concurrency issue).
Switching to Streamer should eliminate the need to deal with these exceptions, but there is still the question of what to do with the client trace information.

@abnanda1
Copy link
Contributor

abnanda1 commented Sep 2, 2014

:shipit:

@@ -33,13 +32,13 @@ public Agent()
Trace.WriteLine("Agent created");
}

public async Task Run()
public async Task Run(string url)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to controllerUrl

Fixed concurrency issue with worker connections. Catching json exceptions
@mikary mikary merged commit 00d2b5c into dev Sep 2, 2014
@mikary mikary deleted the managerParameter branch September 2, 2014 23:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants