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

Aperta
#1,303 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
c

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C
Stelle
10
Fork
8
Merge medio
6h 32m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di FriendsofECCE/ECCE

Tutte le issue di FriendsofECCE/ECCE

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.