Issue with Running RServe in SSL Mode

We are having issues in running RServe integration with Tabelau - with SSL enabled.

Example : Script using the "Forecast" Package for Period Month- fail for particular frequency range with SSL enabled. But works fine once we disable SSL on RServe,

We have similar issue wth mvoutlier package as well.

Is there any buffer setting for SSL to tune?

Scripts

Not working : (works for frequency= 1 to 4 - fails from frequency 5 to 12)

SCRIPT_REAL("library(forecast);
time <- ts(.arg1,start=c(2018,1), frequency=12) ;
fcst <- forecast(time, h=.arg2[1]);
n<-length(.arg1);
append(.arg1[(.arg2[1]+1):n],fcst$mean, after = n-.arg2[1])",
SUM([Dollars]), [Period M])

The below script works both in SSL and Non SSL (forecast with Period Y)

SCRIPT_REAL("library(forecast);
time <- ts(.arg1,start=c(2016,1), frequency=1 );
fcst <- forecast(time, h=.arg2[1]);
n<-length(.arg1);
append(.arg1[(.arg2[1]+1):n],fcst$mean, after = n-.arg2[1])",
SUM([Dollars]), [Period Y])

We tried the below settings in RServe Conf - it works some time for Server - but never for desktop. Also we could not capture the logs
added below lines in RServe.conf
qap.tls.port 6312
http.tls.port 6311
removed below lines in RServe.conf
removed the "tls.port ####" entry altogether.

how does Tabelau Desktop connects to RServe vs How does Tableau Server Connects – will they be using different ports or same port