Commit f05ebc0
committed
Apply connect_timeout to TLS handshake
SSL_connect() blocks indefinitely when connecting with TLS to a non-TLS server.
Apply the connect_timeout as a socket timeout around the SSL_connect() call for
blocking connections.
Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>1 parent b9285b5 commit f05ebc0
2 files changed
+47
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
379 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
380 | 396 | | |
381 | 397 | | |
382 | 398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2676 | 2676 | | |
2677 | 2677 | | |
2678 | 2678 | | |
| 2679 | + | |
| 2680 | + | |
| 2681 | + | |
| 2682 | + | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
| 2705 | + | |
| 2706 | + | |
| 2707 | + | |
| 2708 | + | |
2679 | 2709 | | |
2680 | 2710 | | |
2681 | 2711 | | |
| |||
2840 | 2870 | | |
2841 | 2871 | | |
2842 | 2872 | | |
| 2873 | + | |
2843 | 2874 | | |
2844 | 2875 | | |
2845 | 2876 | | |
| |||
0 commit comments