Skip to content

incomingMessageChannel is not updated #199

Description

@Monika-Rajendran-97

In TLSMessageProcessor class, in run() method, below line creates object to TLSMessageChannel
TLSMessageChannel newChannel = new TLSMessageChannel(newsock, sipStack, this, "TLSMessageChannelThread-" + nConnections);

which in turn creates a thread and start it in constructor itself, which is not good practice since as most of the time, it will end up with an escaped this reference, either explicitly or implicitly.

Because of this, incomingMessageChannel map is not updated with values.

Screenshot 2023-04-20 at 4 52 35 PM

Screenshot 2023-04-20 at 4 54 16 PM

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