Relay shows Baton Connected after the plugin has gone, and never accepts it again
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- networking
Direzione di ricerca
Start with the receive loop in relay/src/state.rs around line 745 and read the Windows behavior described in #254. Decide how the relay can detect a disconnected plugin when Ok(0) is ambiguous, considering the heartbeat or blocking-reader options in the issue. Done means the relay shows :( No Baton Connection after disconnection and accepts a reconnect without manual IPC controls.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
Once the relay has accepted the plugin, it never notices the plugin going away. The window keeps showing :) Baton Connected!, and a plugin that reconnects is never served, so the only recovery is Disconnect IPC then Connect IPC, or restarting the relay.
The receive loop in ipc_connect treats Ok(0) as "no data yet" and keeps polling (relay/src/state.rs:745). On Windows, interprocess returns Ok(0) both for an empty pipe and for one whose other end has closed (see #254), so the loop cannot tell the two apart and never exits. The BrokenPipe arm below it is unreachable on Windows for the same reason. accept() is only called again after that loop exits, so nothing new is accepted.
In the lab this followed directly from #254: the plugin dropped the connection after its failed handshake, but the relay still showed Baton Connected, which made the problem look like it was further down the line.
To Reproduce
- On Windows, start the relay, then X-Plane, so the plugin connects.
- Untick PilotDataSync in Plugin Admin, or quit X-Plane.
- The relay still shows
:) Baton Connected!. - Re-tick the plugin. Nothing reaches the relay until
Disconnect IPC/Connect IPCis pressed.
Expected behavior
The relay notices the plugin has gone, shows :( No Baton Connection, and goes back to accepting, so the plugin can reconnect without anyone touching the relay.
Additional context
Because a read cannot distinguish "empty" from "closed" on Windows, this needs a signal other than the read result. Options include a heartbeat line from baton with a timeout on the relay side, or a blocking reader thread, where Ok(0) really does mean closed. baton already writes SHUTDOWN on a clean stop, but that does not cover X-Plane crashing or the handshake failing.
- Lingua principale
- Python
- Stelle
- 4
- Fork
- 9
- Merge medio
- 3g 21h
- PR unite (30g)
- 7
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di oss-slu/PilotDataSynchronization
-
area:docs area:xplane-plugin documentation needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
oss-slu/PilotDataSynchronization#259 ·
I maintainer di solito rispondono entro 3 giorni
-
Connect TCP with an invalid address is silent in the event logForse già presa @PRINCEKK122 l’ha presa 22 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
oss-slu/PilotDataSynchronization#241 ·
I maintainer di solito rispondono entro 3 giorni
-
cluster_pilots.py shows a traceback for a bad --k and leaves outputs when --truth is invalidForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaarea:ml bug python
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
oss-slu/PilotDataSynchronization#232 ·
I maintainer di solito rispondono entro 3 giorni
-
Document running the Python listener on a second PCForse già presa @Omanhene20 l’ha presa 3 giorni fa. Apertaarea:docs area:ml area:relay documentation needs-triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 70/100
oss-slu/PilotDataSynchronization#264 · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
-
data_logger stops with a traceback if its CSV is open in ExcelForse già presa @jmacd867 l’ha presa 10 giorni fa. Apertaarea:ml bug needs-triage python
oss-slu/PilotDataSynchronization#263 · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di oss-slu/PilotDataSynchronization
Issue simili
-
[Bug]: Python SDK overwrites OVPack backups with HTTP 200 JSON errorsForse già presa @stefanielizeth73-art l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
volcengine/OpenViking#7347 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
duolicious/duolicious#1943 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
fedora-infra/anitya#2166 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NVIDIA/auto-ontology#486 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
NVIDIA/SkillEvaluator#446 ·
I maintainer di solito rispondono entro 2 giorni