Skip to content

App not reconnect after resume from sleep mode in Windows

Summary

openconnect-gui not reconnect automatically after resume from sleep mode in Windows. Disconnect / Connect by hands helps.

Version of the software & operating system

Win 11, openconnect-gui 1.6.2-dirty

Steps to reproduce

openconnect-gui with user certificate connection

Actual results

2024-08-16 06:37:55 | 19af8 | CSTP Dead Peer Detection detected dead peer!
2024-08-16 06:38:17 | 19af8 | Failed to reconnect to host host.com:
2024-08-16 06:38:17 | 19af8 | sleep 10s, remaining timeout 300s
2024-08-16 06:38:27 | 19af8 | SSL negotiation with host.com
2024-08-16 06:38:27 | 19af8 | Connected to HTTPS on host.com with ciphersuite (TLS1.2)-(ECDHE-SECP256R1)-(ECDSA-SHA256)-(AES-256-GCM)
2024-08-16 06:38:27 | 19af8 | Got inappropriate HTTP CONNECT response: HTTP/1.1 405 Method Not Allowed
2024-08-16 06:38:27 | 19af8 | sleep 20s, remaining timeout 290s
2024-08-16 06:38:47 | 19af8 | SSL negotiation with host.com
2024-08-16 06:38:47 | 19af8 | Connected to HTTPS on host.com with ciphersuite (TLS1.2)-(ECDHE-SECP256R1)-(ECDSA-SHA256)-(AES-256-GCM)
2024-08-16 06:38:47 | 19af8 | Got inappropriate HTTP CONNECT response: HTTP/1.1 405 Method Not Allowed
2024-08-16 06:38:47 | 19af8 | sleep 30s, remaining timeout 270s
2024-08-16 06:39:17 | 19af8 | SSL negotiation with host.com
2024-08-16 06:39:17 | 19af8 | Connected to HTTPS on host.com with ciphersuite (TLS1.2)-(ECDHE-SECP256R1)-(ECDSA-SHA256)-(AES-256-GCM)
2024-08-16 06:39:17 | 19af8 | Got inappropriate HTTP CONNECT response: HTTP/1.1 405 Method Not Allowed
2024-08-16 06:39:17 | 19af8 | sleep 40s, remaining timeout 240s
2024-08-16 06:39:57 | 19af8 | SSL negotiation with host.com)