2

We have one .net exe running on local machine and browser make one API to that running service with https://localhost:45235/getInfo. Actual getInfo API returns response in < 1 sec. But when browser makes call to same API it takes > 4 secs.

When debugged observed that In browser dev tools-> network tabs -> Initial connection SSL takes almost ~ 3secs.

Would like to understand why SSL handshake takes ~3 secs and any way with which this time can be reduced?

Note: To make this https call locally we have self signed certificate on local machine.

Thanks in advance.

6
  • Is there any difference between browsers?
    – MrWhite
    Dec 29, 2020 at 13:24
  • Why are you running https rather then http on localhost?
    – davidgo
    Dec 29, 2020 at 17:46
  • 1
    There is no difference of delay in browsers. Every browsers same SSL handshake time
    – Shital
    Dec 30, 2020 at 15:25
  • I dont remember exactly what made this decision to make it https. May be we have to revisit this aspect.
    – Shital
    Dec 30, 2020 at 15:28
  • is there anything we an do to reduce this SSL handshake time?
    – Shital
    Jan 4, 2021 at 15:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.