Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: configurable timeout #7

Open
fredvej opened this issue Feb 7, 2020 · 2 comments
Open

feature request: configurable timeout #7

fredvej opened this issue Feb 7, 2020 · 2 comments

Comments

@fredvej
Copy link

fredvej commented Feb 7, 2020

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

@ivanenko
Copy link
Owner

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

@fredvej
Copy link
Author

fredvej commented Feb 16, 2020

Thank you, I look forward to it :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants