cloud_storage icon indicating copy to clipboard operation
cloud_storage copied to clipboard

feature request: configurable timeout

Open fredvej opened this issue 5 years ago • 2 comments

Please make it possible to configure the length of the timeout for getting a verification and establishing a connection.

I have two Google Drive connections in Double Commander, and one of them demands that I verify by entering a code I get in a text message. By the time the message arrives, cloud_storage_linux64.wfx has already given up etablishing the connection and declares Timeout. When I have entered the verification code and logged in to Google Drive, the browser says "Firefox can’t establish a connection to the server at localhost:3359" because of the timeout.

When I log in to the Google Drive account via the browser, I can access the content via the browser, so the account is not blocked. I have tried removing my phone number from the account's settings, but when the cloud_storage_linux64.wfx tries to connect, the Google login still demands a verification.

The other Google Drive connection works just fine. I attempt to enter the shortcut in wfx://Cloud Storage , the default browser (Firefox) opens and I log in to the Google Drive account, and the browser says Success, and I can close the browser and the account directory is open in Double Commander.

The two accounts are configured like this in $DC_CONFIG_PATH/cloud_storage.ini :

{ "client_id": null, "get_token_method": "oauth", "name": "Googledrive account that demands verification", "oauth_token": "", "port": 3359, "save_type": "config", "service": "gdrive", "user_name": "[email protected]" }, { "client_id": null, "get_token_method": "oauth", "name": "Googledrive that works fine", "oauth_token": "here is the token string removed", "port": 3359, "save_type": "config", "service": "gdrive", "user_name": "[email protected]" },

Double Commander Version: 0.9.8 beta Revision: 9296 Build date: 2020/02/01 Lazarus: 2.0.6.0 FPC: 3.0.4 Platform: x86_64-Linux-qt5 OS version: Manjaro Linux Widgetset library: Qt 5.14.1, libQt5Pas 5.6.1

fredvej avatar Feb 07 '20 17:02 fredvej

Really a good idea, I will do it soon. Right now timeout value is 20 sec and it is not configurable

ivanenko avatar Feb 15 '20 20:02 ivanenko

Thank you, I look forward to it :-)

fredvej avatar Feb 16 '20 07:02 fredvej