Skip to content

What means "immediately" in seastar:;connected_socket shutdowns? #2721

Open
@kelbon

Description

@kelbon

shutdown_input / shutdown_output comment says:

    /// Disables output to the socket.
    ///
    /// Current or future writes that have not been successfully flushed
    /// will immediately fail with an error.  This is useful to abort
    /// operations on a socket that is not making progress due to a
    /// peer failure.
    void shutdown_output();
    /// Disables input from the socket.
    ///
    /// Current or future reads will immediately fail with an error.
    /// This is useful to abort operations on a socket that is not making
    /// progress due to a peer failure.
    void shutdown_input();

What means immediately here? Is it invoking future with error like boost::asio socket do,. or pushing some task to some queue and it will be called in future? How debug task reordering and preempting may be involved here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions