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

Adding support for asynchronous file transfer #510

Open
wants to merge 2 commits into
base: 1060
Choose a base branch
from

Conversation

Patel-Kamalkumar
Copy link
Contributor

- File transfer between BMC and Host is synchronous mechanism.
- File transfer interrupted because of many reasons, so if
  file transfer interrupted between BMC and Host then PLDM is
  ending up in the hung state and not able to respond to the
  upcoming new requests. User has to do work around to restart
  the PLDM to get work again.
- I have added asynchronous file transfer support using
  eventloop mechanism and non-blocking socket communication,
  so file transfer will be taken care by event loop and PLDM
  is free to receive another request from the Host.
- If file transfer will be stuck or interrupted during
  asynchronous transfer then time-out occurs and file transfer
  will be aborted and same status communicated to the Host.

- this changes are in support of asynchronous file io operation
between pldm and remote terminus.
- previously pldm send response to remote terminus when it's complete
the operation and that duration pldm is blocked but new response
mechanism will be introduced in case of event loop, pldm can take
time to process request and meanwhile it can receive another request.

Signed-off-by: Kamalkumar Patel <[email protected]>
- File transfer between BMC and Host is synchronous mechanism.
- File transfer interrupted because of many reasons, so if
  file transfer interrupted between BMC and Host then PLDM is
  ending up in the hung state and not able to respond to the
  upcoming new requests. User has to do work around to restart
  the PLDM to get work again.
- I have added asynchronous file transfer support using
  eventloop mechanism and non-blocking socket communication,
  so file transfer will be taken care by event loop and PLDM
  is free to receive another request from the Host.
- If file transfer will be stuck or interrupted during
  asynchronous transfer then time-out occurs and file transfer
  will be aborted and same status communicated to the Host.

Signed-off-by: Kamalkumar Patel <[email protected]>
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

Successfully merging this pull request may close these issues.

1 participant