[libp2p-ping] Properly close the substream in the InboundUpgrade.
Not doing so may result in FIN/RST frames being sent before
earlier data frames. See
@@ -69,6 +69,7 @@ where
while let Ok(_) = socket.read_exact(&mut payload).await {
socket.write_all(&payload).await?;
}
+ socket.close().await?;
Ok(())
}.boxed()
}
