Skip to content

Stream 可以支持 CloseWrite 吗? #112

@lonnywong

Description

@lonnywong

发送端在 Stream 上写完数据后,调用 CloseWrite 关闭写,告诉接受端数据写完了。

这不是 Close 整个 Stream ,调用 CloseWrite 之后,还希望对端还能继续写,自己还能继续读完剩下的数据。

net.TCPConn 有 CloseWrite 和 CloseRead ,半关闭在某些场景下是很有用的,我需要用到 CloseWrite,希望可以支持。

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