Skip to content

send/receive: use io.ReadCloser and io.WriteCloser instead of io.Reader / io.Writer #7

Open
@casKd-dev

Description

@casKd-dev

Current implementation of send/receive hangs until exit due to the stream never being closed, thus blocking indefinetly. For these functions the data types implementing io.Close() should be used and stream closures propagated accordingly.

Unsure about the file descriptor provided by the raw ioctl() call but go's cmd.Exec / cmd.Run requires directly using the o.StdoutPipe() so that Close() is propagated accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions