Skip to content

What's the meaning of return value "0" of s2n_send? #4687

Open
@Mavis-Dong

Description

@Mavis-Dong

Hi, I got a question on s2n_send. I found that for s2n_recv, in the example, the "0" return value means the connection is closed: https://github.com/aws/s2n-tls/blob/main/docs/examples/s2n_recv.c#L29
However in s2n_send, it's regarded as normal processing: https://github.com/aws/s2n-tls/blob/main/docs/examples/s2n_send.c#L24
What could lead to "0" return value in s2n_send? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions