Skip to content

flush and close the connection  #11

@HelloBytes

Description

@HelloBytes

In some occasions on some devices, when you scan the network and after it's done connect to that device on the same port the connection is not closed properly.

My proposal is to add flush and close before destroy:

final Socket s = await Socket.connect(host, port, timeout: timeout); await s.flush(); await s.close(); s.destroy();

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