Organizer: connecting an SSH folder lists its root on the GUI thread (one blocked round trip per connect)

Ouverte
#1,303 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
55/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
c
Domaine
desktop, networking

Piste de recherche

Start with src/apps/organizer/CalcMgr.C and trace the listed connect path through WxResourceTreeCtrl::addSshRoot, EDSIFactory::getResource, and SftpEDSI::getMetaData into SftpOp::mirror. Compare with the worker based folder listing added for #1220, including applySshProbe → syncServerRoots. Done when a delayed fake SSH lets the window answer a hook within about 1 s during connection, with the root shown as connecting.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

Connecting an SSH folder still lists its root on the GUI main thread. This happens when connecting from the Servers menu, and when a connect is applied after the start-up worker. During that listing the window is blocked for one remote round trip, with no progress shown. Selecting or double-clicking a folder already in the tree no longer blocks (#1220).

Evidence: a diagnostic build logged a stack for every SFTP script run on the main thread. With a fake ssh that delays every remote command, the only such scripts were made at connect time:

CalcMgr::connectSsh → WxResourceTreeCtrl::addSshRoot → EDSIFactory::getResource → SftpEDSI::getMetaData → mirrorForMeta → SftpOp::mirror

The #1220 diagnosis also named applySshProbe → syncServerRoots, which runs one listing just before "tree root made" (src/apps/organizer/CalcMgr.C).

To do: run the root's metadata read and listing on a worker, as the folder listing does since #1220, and add the root to the tree as "connecting". A test with a delayed fake ssh should show the window answering a hook within about 1 s while the connect is in progress.

Langage dominant
C
Étoiles
10
Forks
8
Merge moyen
6 h 32 min
PR mergées (30 j)
1

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de FriendsofECCE/ECCE

Toutes les issues de FriendsofECCE/ECCE

Issues similaires

Plus d'issues C

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.