Skip to content

Commit

Permalink
Better wording of Connection paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
flub committed Aug 8, 2024
1 parent 9403e13 commit 25fc06f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions quinn/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,10 @@ impl Future for ConnectionDriver {
/// automatically closed with an `error_code` of 0 and an empty `reason`. You can also close the
/// connection explicitly by calling [`Connection::close()`].
///
/// Closing the connection will make both peers immediately drop all the stream data not yet
/// delivered to the application. [`Connection::close()`] describes in more detail how to
/// gracefully close a connection without losing application data.
/// Closing the connection immediately abandons efforts to deliver data to the peer. Upon
/// receiving CONNECTION_CLOSE the peer *may* drop any stream data not yet delivered to the
/// application. [`Connection::close()`] describes in more detail how to gracefully close a
/// connection without losing application data.
///
/// May be cloned to obtain another handle to the same connection.
///
Expand Down

0 comments on commit 25fc06f

Please sign in to comment.