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

If adbserver receives two commands at the same time it drops the first one #616

Open
olga999999 opened this issue Jan 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@olga999999
Copy link

olga999999 commented Jan 11, 2024

Describe the bug
If adbserver receives two commands from different devices at the same time it drops the first one.

To Reproduce
It is difficult to simulate this behavior intentionally.

Expected behavior
Both commands should be executed.

Screenshots
adbserver-desktop log in terminal:

INFO 11/01/2024 10:50:07.333  desktop=Desktop-84334 device=IP:7489   message: The received command to execute: AdbCommand(body="COMMAND_A")
INFO 11/01/2024 10:50:08.291  desktop=Desktop-84334 device=IP:7401   message: The received command to execute: CmdCommand(body="COMMAND_B")
INFO 11/01/2024 10:50:08.305  desktop=Desktop-84334 device=IP:7401   message: The executed command: CmdCommand(body="COMMAND_B"). The result: CommandResult(status=SUCCESS, description=exitCode=0, message="COMMAND_B_RESULT", serviceInfo=The command was executed on desktop=Desktop-84334)

COMMAND_A is never executed after this.

logcat on device A:

01-11 10:50:06.275  1352  1702 I KASPRESSO: AdbServer. The command to execute=COMMAND_A
01-11 10:50:06.275  1352  1702 I KASPRESSO_ADBSERVER: Start to execute the command=AdbCommand(body=COMMAND_A
01-11 10:50:06.276  1352  1702 D KASPRESSO_ADBSERVER: class=ConnectionClientImplBySocket method=executeCommand message: Started command=AdbCommand(body=COMMAND_A)
01-11 10:50:06.276  1352  1702 D KASPRESSO_ADBSERVER: class=SocketMessagesTransferring method=sendMessage message: Input sendModel=TaskMessage(command=AdbCommand(body=COMMAND_A) 

COMMAND_A is never executed after this.

Desktop (please complete the following information):

  • OS: macOS
  • Browser [e.g. chrome, safari]: n/a
  • Version [e.g. 22]: module = "com.kaspersky.android-components:adb-server-device", version = "1.5.3" (adb-server only is used w/o the rest of Kaspresso)

Smartphone (please complete the following information):

  • Device: it is not device dependent

Additional context
Add any other context about the problem here.

@olga999999 olga999999 added the bug Something isn't working label Jan 11, 2024
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