Skip to content

zero-sized read caused a crash #1747

@sameer-here

Description

@sameer-here

asio's ssl_stream simulates io_context::post using a zero-length read, this can trigger a pending_guard assertion.

https://github.com/chriskohlhoff/asio/blob/asio-1-38-0/include/asio/ssl/detail/io.hpp#L230-L242

I think it would be logical to use boost::asio::post in this code, or document a reason why a zero-length read is preferred.

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