Skip to content

Do seastar::connected_socket really do not support 2 writes at once from single thread? #2720

Open
@kelbon

Description

@kelbon

seastar output streams comment says:

/// \note All methods must be called sequentially.  That is, no method
/// may be invoked before the previous method's returned future is
/// resolved.

This means, 2 out.write() futures at one time is.. Undefined behavior? Why didn't you just add queue then? How programmer supposed to write code using your socket?

I know no one socket with such intertface ever, even windows system socket supports writing 2 times from one thread

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