Skip to content

socket on server is still open after client closed socket #10601

@freddycct

Description

@freddycct

On server

julia> server = listen(2000)
TcpServer(active)

julia> socket = accept(server)

On client

julia> cl_socket = connect(2000)
TcpSocket(open, 0 bytes waiting)

julia> isopen(cl_socket)
true

On server

julia> isopen(socket)
true

On client

julia> close(cl_socket)

julia> isopen(cl_socket)
false

On server

julia> isopen(socket)
true

isopen(stream) → Bool
Determine whether a stream is open (i.e. has not been closed yet). If the connection has been closed remotely (in case of e.g. a socket), isopen will return false

Metadata

Metadata

Assignees

No one assigned

    Labels

    ioInvolving the I/O subsystem: libuv, read, write, etc.needs decisionA decision on this change is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions