Skip to content

Commit

Permalink
fix(perf/go-libp2p): close write after sending in client
Browse files Browse the repository at this point in the history
Follow up to #184.
  • Loading branch information
mxinden committed Jun 23, 2023
1 parent 53ff8b5 commit c475460
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions perf/impl/go-libp2p/v0.27/perf.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func (ps *PerfService) RunPerf(ctx context.Context, p peer.ID, bytesToSend uint6
if err := sendBytes(s, bytesToSend); err != nil {
return 0, 0, err
}
s.CloseWrite()
sendDuration := time.Since(sendStart)

recvStart := time.Now()
Expand Down

0 comments on commit c475460

Please sign in to comment.