Skip to content
This repository was archived by the owner on Aug 12, 2023. It is now read-only.
This repository was archived by the owner on Aug 12, 2023. It is now read-only.

Hi, problem with your receivebox function #2

@mmgrant73

Description

@mmgrant73

I am not sure if this is still active but there is a problem with your receivebox function. If the data comes in too fast it leads to duplication and/or corruption of the data. It happens because your function does not have enough time to finish before new data is received (You try to capture the key.value pair as it comes in). Just run your server/client example a couple of times from a local machine and your will see it. Anyways, I fixed it by waiting for the stop bytes to come in before processing the data. You can see it at https://github.com/mmgrant73/AmpJS. Its a library I developed for the amp protocol. I tried to mimic how it is done in Python. If you have any question feel free to ask me. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions