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

Aberta
#1,303 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
55/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
c
Domínio
desktop, networking

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
C
Estrelas
10
Forks
8
Merge médio
6h 32min
PRs com merge (30d)
1

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de FriendsofECCE/ECCE

Todas as issues de FriendsofECCE/ECCE

Issues semelhantes

Mais issues de C

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.