In fact we have detected that this problem happens only with EV certificates . It seems that Avast handle the HTTPS handshake, which is suddenly aborted after transmiting the certificate the first time.
In the following calls, the https connection is already stablished so we dont have the problem anymore, until we restart.
Could you confirm if the bug is related with this subject?
Thank you again