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

Stuck on Y=1 #535

Open
jmkristian opened this issue Jun 10, 2024 · 1 comment
Open

Stuck on Y=1 #535

jmkristian opened this issue Jun 10, 2024 · 1 comment

Comments

@jmkristian
Copy link
Contributor

In some cases, Direwolf sends an inaccurate 'Y' response to an AGW client, indicating there is one frame outstanding, waiting to be transmitted. But all frames have been transmitted. It should send Y=0.

The circumstances in which this occurs seem quite specific. In my case, I connect to a BBS and send a 'b' command; the BBS responds by disconnecting immediately. Next, I connect to the same BBS, using the same TCP connection to Direwolf. At this point, Direwolf is stuck on Y=1. The attached file Y1.txt shows this behavior. It's output from Direwolf with the command line option "-d au". The inaccurate Y values appear after 11:58:09.

Y1.txt

The behavior seems correlated with the remote call sign. If I connect to a different BBS (using the same TCP connection to Direwolf), the connection starts correctly with Y=0. If I go back and connect to the problematic BBS, the connection starts with Y=1.

I used Windows 8.1, Direwolf version 1.7 and a DRA-65 audio adapter.

@mfncooper
Copy link

This is likely related to the cause of issue #534 as described here: #534 (comment)

The data being collected for the 'Y' response is coming from the same data structure maintained in list_head. Since this data structure is never cleaned up, the second connection is reusing the same instance that was created for the first connection. That instance may contain stale data left over from the first connection that is now being provided as if it was relevant to the second connection.

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