Skip to content

[Suggestion] Adding more debug info into TcpWriter. #344

Description

It could be great to add a Trace.WriteLine() in TcpWriter in the Receive method in case networkStream is null (line 68)

if (this.networkStream != null)
{
    this.networkStream.Write(BitConverter.GetBytes(count), 0, sizeof(int));
    this.networkStream.Write(bytes, offset, count);
}
#if DEBUG
else
{
    Trace.WriteLine($"TcpWriter {name} trying to write while not connected!");
}
#endif

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions