GlobalProtect-openconnect icon indicating copy to clipboard operation
GlobalProtect-openconnect copied to clipboard

client hangs for 2 minutes when the computer comes back from sleep

Open simonLeary42 opened this issue 2 years ago • 3 comments

2023-01-20 23:52:39.712 INFO  [58830] [GPClient::doConnect@244] Start connecting...
# put computer to sleep and wake back up
2023-01-20 23:52:39.712 INFO  [58830] [GPClient::doConnect@269] Start disconnecting the VPN...
2023-01-20 23:52:39.716 INFO  [58830] [GPClient::onVPNLogAvailable@517] Socket connect canceled
2023-01-20 23:52:39.716 INFO  [58830] [GPClient::onVPNLogAvailable@517] Failed to reconnect to host <my-vpn>: Interrupted system call
2023-01-20 23:52:39.716 INFO  [58830] [GPClient::onVPNLogAvailable@517] POST https://<my-vpn>/ssl-vpn/logout.esp
# wait for over 2 minutes here
2023-01-20 23:54:49.438 INFO  [58830] [GPClient::onVPNLogAvailable@517] Socket connect canceled
Failed to reconnect to host <my-vpn>: Interrupted system call
2023-01-20 23:54:49.438 INFO  [58830] [GPClient::onVPNLogAvailable@517] Failed to open HTTPS connection to <my-vpn>
Logout failed.
2023-01-20 23:54:49.475 INFO  [58830] [GPClient::onVPNLogAvailable@517] RTNETLINK answers: No such process
2023-01-20 23:54:49.476 INFO  [58830] [GPClient::onVPNLogAvailable@517] RTNETLINK answers: No such process
2023-01-20 23:54:49.478 INFO  [58830] [GPClient::onVPNLogAvailable@517] RTNETLINK answers: No such process
"No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/7"
2023-01-20 23:54:49.546 INFO  [58830] [GPClient::onVPNLogAvailable@517] Unknown error; exiting.
2023-01-20 23:54:49.548 INFO  [58830] [GPClient::onVPNLogAvailable@517] Openconnect process exited with code 1 and exit status NormalExit

simonLeary42 avatar Jan 21 '23 04:01 simonLeary42

I confirm this on my Gentoo system. It's quite annoying. Basically network doesn't work at all for me coz all my traffic goes through vpn which is broken. After those 2 mins the GP finally realizes it has to drop the connection and fix routing tables and then network starts working.

Ri0n avatar Jun 20 '23 06:06 Ri0n

I will deal with this problem in the next release, refactored using Tauri (e.g., disconnect before going to sleep and reconnect automatically when awake). Before that, I don't want to investigate too deeply for this.

yuezk avatar Jun 20 '23 08:06 yuezk

I have a similar problem where if the vpn transport gets disconnected, but the client still believes it's connected. It takes 1-10 minutes for the client to finally disconnect after I've pressed the button. This is usually the case if I close my laptop lid before manually disconnecting, and everything is just dead for several minutes.

yosh-se avatar Oct 26 '23 06:10 yosh-se