-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix socket exception on datacollection in parallel #1505
Conversation
@@ -596,6 +596,7 @@ private void SetOperationComplete() | |||
EqtTrace.Verbose("TestRequestSender.SetOperationComplete: Setting operation complete."); | |||
} | |||
|
|||
this.communicationEndpoint.Stop(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need lock here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not required.
@@ -25,14 +25,19 @@ internal static class TcpClientExtensions | |||
CancellationToken cancellationToken) | |||
{ | |||
Exception error = null; | |||
var remoteEndPoint = ((IPEndPoint)client.Client.RemoteEndPoint).ToString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need typecast?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
try | ||
{ | ||
if (client.Client.Poll(STREAMREADTIMEOUT, SelectMode.SelectRead)) | ||
{ | ||
EqtTrace.Verbose("TcpClientExtensions.MessageLoopAsync: NotifyDataAvailable remoteendPoint: {0} localEndPoint: {1}", remoteEndPoint, localEndPoint); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MessageLoopAsync [](start = 62, length = 16)
Lets see logs for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
var connected = this.dataCollectionRequestSender.WaitForRequestHandlerConnection(this.connectionTimeout); | ||
if (connected == false) | ||
{ | ||
EqtTrace.Error("ProxyDataCollectionManager.Initialize: failed to connect to datacollector process."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add datacollector process ID we could not connect to
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Add more logging for datacollection manager * Skip additional messages * Add more logging * Add logging for MessageLoopAsync * Add logging for MessageLoopAsync 2 * Stop the communication server on operation complete * Add tests and remove not required logging * Address review comments
* Fix socket exception on datacollection in parallel (#1505) * Add more logging for datacollection manager * Skip additional messages * Add more logging * Add logging for MessageLoopAsync * Add logging for MessageLoopAsync 2 * Stop the communication server on operation complete * Add tests and remove not required logging * Address review comments * Remove IPEndpoint typecast
Description
Fix
Related issue
#1472