vsphere-influxdb-go icon indicating copy to clipboard operation
vsphere-influxdb-go copied to clipboard

Increase GO TLSHandshakeTimeout value

Open gaetanquentin opened this issue 6 years ago • 2 comments

Since a few days we have this error:

"Could not initialize connection to vcenter cpl0115hm.jmsp.prod Post https://cpl0115hm.jmsp.prod/sdk: net/http: TLS handshake timeout"

Because the TLS connection has become slower.

The TLSHandshakeTimeout is set at 10 secondes in GO.

Could you allow to increase it in a parameter?

Regards.

gaetanquentin avatar Mar 26 '18 14:03 gaetanquentin

Hi,

Has something changed in your environement? 10 seconds seems a lot, does basic connectivity (ping, telnet 443, curl , etc.) towards the vCenter work ?

Cheers, Adrian

sofixa avatar Mar 30 '18 20:03 sofixa

yes something must have changed in our environment but i don't know what .

yes telnet and 'openssl s_client connect 'work fine but are very slow

gaetanquentin avatar Mar 31 '18 05:03 gaetanquentin