-
Notifications
You must be signed in to change notification settings - Fork 90
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
Race condition in class Communication
in package com.adroid.identity.wallet.transfer
#462
Comments
nicklaswj
pushed a commit
to nicklaswj/identity-credential
that referenced
this issue
Jan 30, 2024
….transfer.Communication sendResponse If `closeAfterSending` is true, only close the connection after we know the `deviceResponse` payload have been sent.
nicklaswj
pushed a commit
to nicklaswj/identity-credential
that referenced
this issue
Feb 1, 2024
….transfer.Communication sendResponse If `closeAfterSending` is true, only close the connection after we know the `deviceResponse` payload have been sent. Signed-off-by: Nicklas Warming Jacobsen <[email protected]>
nicklaswj
pushed a commit
to nicklaswj/identity-credential
that referenced
this issue
Feb 1, 2024
….transfer.Communication sendResponse If `closeAfterSending` is true, only close the connection after we know the `deviceResponse` payload have been sent. Signed-off-by: Nicklas Warming Jacobsen <[email protected]>
This issue is being closed as stale |
Doing some cleanup/spring cleaning and closing all issues older than 90 days. Please reopen if issue is still relevant. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
The method
sendResponse
on classCommunication
with the argumentcloseAfterSending = true
(code), should only close the connection after thedeviceResponse
message has been sent.Actual Behavior
If the connection and or latency on the underlying
mTransport
is slow enough, the above described call will close the connection before thedeviceResponse
has actually been sent.Steps to Reproduce the Problem
emulator_speed/internet_speed
ratio is too small to cause the race condition).Specifications
Fix
I'll open a PR with a fix in a minute
The text was updated successfully, but these errors were encountered: