RestComm / jain-sip

Disclaimer: This repository is a git-svn mirror of the project found at http://java.net/projects/jsip whose original repository is developed collaboratively by the Advanced Networking Technologies Division at the National Institute of Standards and Technology (NIST) - an agency of the United States Department of Commerce and by a community of individual and enterprise contributors. TeleStax, Inc. will perform some productization work, new features experimentation branches, etc for its TelScale jSIP product that doesn't concern the community from the main repository hence this git repository.
http://www.restcomm.com/
141 stars 151 forks source link

incomingMessageChannel is not updated #199

Open Monika-Rajendran-97 opened 1 year ago

Monika-Rajendran-97 commented 1 year ago

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