Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

onAck callback is broken under SSL mode #85

@Adam5Wu

Description

@Adam5Wu

The SSL handshake requires some amount of communication, which are not accounted for in _tx_unacked_len on the way out. However, when ack arrives for those bytes, the amount is removed from _tx_unacked_len causing it to go negative, and thus breaks the trigger of _sent_cb callback.

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