Skip to content

File transfer can cause timeout #282

@rm5248

Description

@rm5248

Describe the bug
An OSDP device that I am using takes a long time to respond to file transfer messages from the CP. When libosdp is used as a CP, this results in the file transfer(firmware upgrade) messages not being sent, because libosdp decides that the PD is not responding.

Expected behavior
File transfer messages do not cause a timeout

Observed behavior
File transfer messages work

Additional context
I did a local fix by just setting OSDP_RESP_TOUT_MS to 800(from 200) in order to make sure that it works. There are two options that I can see on how to fix this:

  1. For file transfer messages, automatically increase the timeout to be 3x OSDP_RESP_TOUT_MS
  2. Add a flag to configure the timeout at runtime(to be 3x the standard OSDP_RESP_TOUT_MS)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions