Skip to content

Commit

Permalink
Merge pull request #66 from psalin/fix_stream_creation_concurrency
Browse files Browse the repository at this point in the history
Fix stream creation concurrency in new_stream
  • Loading branch information
tsloughter authored Jun 7, 2022
2 parents 848558a + e4fd229 commit fd5c63b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/grpcbox_client_stream.erl
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,10 @@ new_stream(Ctx, Channel, Path, Def=#grpcbox_def{service=Service,
buffer => <<>>,
stats_handler => StatsHandler,
stats => #{},
client_pid => self()}], self()) of
client_pid => self()}], RequestHeaders, [], self()) of
{error, _Code} = Err ->
Err;
{StreamId, Pid} ->
h2_connection:send_headers(Conn, StreamId, RequestHeaders),
Ref = erlang:monitor(process, Pid),
{ok, #{channel => Conn,
stream_id => StreamId,
Expand Down

0 comments on commit fd5c63b

Please sign in to comment.