kyma-incubator / varkes

A mocking toolkit for Kyma
Apache License 2.0
12 stars 13 forks source link

Retries for first call with client certificate #265

Closed a-thaler closed 4 years ago

a-thaler commented 4 years ago

It appears that directly after the pairing handshake it takes a while till the client certificate gets active and will be accepted. Unfortunately, if you are too fast you will get errors like Socket hang up or even a SSL exception like Error: write EPROTO 140144857348968:error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1536:SSL alert number 45.

After the client certificate gets retrieved a call to the info endpoint is required to get all relevant infos so that the pairing can be ended successful. For that call I added a retry of 5 times waiting for a second as that seems sufficient. I observed a maximum of 2 retries.

Furthermore I updated some dependencies