< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] TLS Client Connect Inefficiency


I’ve recently noticed that the TlsConnect code is very CPU aggressive when forming a TLS connection. 

 

Essentially  - while the connection is being made, there is still a message on the TxFifo for the TlsTransport - this causes the getNextProcessTimeMs func to keep returning 0 - until the connection is formed and the message is sent.  This is a tight loop in the select/process loop.

 

Any thoughts on how to fix this properly?

 

Scott