Skip to content

UDP packets lost or corrupted #27

@videovse

Description

@videovse

Good day!
Quick description:
I've used Cinder-Asio in my project and in some point get strange results - UDP packets, that my program received, were lost or corrupted. As far it was ArtNet packets, that has "sequence number" field, I can trace if packets lost.
I've made some modification in Cinder-Asio sample "MultiUdpServer" to receive and check ArtNet packets, and it works fine. After that I've changed buffer size (as I've done before in my program): instead of calls to seesion->read() in callbacks i've called session->read(MAX_BUFFER_SIZE). And that's point. If MAX_BUFFER_SIZE is 530 bytes or less - everything is works fine, if 540 or greater - packets are lost or corrupted (didn't test values between 530 and 540).
Is it ci::Buffer problem?
Any ideas?

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