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

[BUG]-Sometimes we don't get the "Login Successful" prompt #4

Open
ngenovese11 opened this issue Dec 6, 2022 · 0 comments
Open

[BUG]-Sometimes we don't get the "Login Successful" prompt #4

ngenovese11 opened this issue Dec 6, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@ngenovese11
Copy link
Contributor

Describe the bug
When the socket is connected, we are waiting for a "Login success" prompt before proceeding with "sync'ing" the codec. I found that very often we would never receive that prompt, and as such we'd continually disconnect/reconnect waiting for it. I observed this disconnect/reconnect process happen for as long as 10 minutes.

Debug

[13:57:05.000]App 3:[codec-ssh] attempting connect

[13:57:05.000]App 3:[codec-ssh] Creating new SshClient

[13:57:05.000]App 3:[codec] Socket status change SOCKET_STATUS_WAITING

[13:57:05.000]App 3:[codec--Sync] Processing actions SYS:1 COMMANDS:1

[13:57:06.000]App 3:[codec-ssh] Connected

[13:57:06.000]App 3:[codec-ssh] Sending 19 characters of text: 'xStatus SystemUnit[0D]'

[13:57:06.000]App 3:[codec-ssh] Received: 'xStatus SystemUnit[0D][0A]'

[13:57:06.000]App 3:[codec] Socket status change SOCKET_STATUS_CONNECTED

To Fix
I added in a condition that assumes if we received "xStatus SystemUnit", to also assume that the login was successful and proceed with the sync process

Additional context
3 Series Processor

@ngenovese11 ngenovese11 added the bug Something isn't working label Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant