Skip to content

Maybe clarify the need to send the whole Socket to both client Runnables? #5

Open
@NicMcPhee

Description

@NicMcPhee

The current write-up doesn't actually say anything substantive on what gets handed to what, but I know what when I lecture on this I frequently suggest that the two client threads really only need their respective streams instead of the whole Socket. It turns out, though, that at least the Runnable that's handling standard input needs the whole Socket so it can call the Socket.shutdownOutput method when it's done receiving input from stdin.

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