For review: Issue 35, agent interruptions
Please review the two possible fixes and give your opinion. One fix is in each file. We only need one of them. The intent is to clear the interrupted flag of the thread before completing the test.
I prefer the fix in Agent.java, so that the fix occurs in the general case, rather than just in a socket type connection (which is the second proposed fix).
For reference, here is the relevant Thread API: