Skip to content

Commit

Permalink
add stream shutdown and support half-duplex operation (#40783)
Browse files Browse the repository at this point in the history
Fixes one of the issues mentioned in #24526
  • Loading branch information
vtjnash authored Jul 29, 2021
1 parent 740a33a commit 2cb6904
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/process_messages.jl
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ function message_handler_loop(r_stream::IO, w_stream::IO, incoming::Bool)
deregister_worker(wpid)
end

isopen(r_stream) && close(r_stream)
isopen(w_stream) && close(w_stream)
close(r_stream)
close(w_stream)

if (myid() == 1) && (wpid > 1)
if oldstate != W_TERMINATING
Expand Down

0 comments on commit 2cb6904

Please sign in to comment.