mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-21 00:00:10 +02:00
net: add docs on ConnectionRefused errors with udp sockets (#7870)
This commit is contained in:
+2
-1
@@ -1,4 +1,4 @@
|
||||
316
|
||||
317
|
||||
&
|
||||
+
|
||||
<
|
||||
@@ -139,6 +139,7 @@ hashmaps
|
||||
HashMaps
|
||||
hashsets
|
||||
HdrHistogram
|
||||
ICMP
|
||||
ie
|
||||
Illumos
|
||||
impl
|
||||
|
||||
@@ -531,7 +531,12 @@ impl UdpSocket {
|
||||
/// The [`connect`] method will connect this socket to a remote address.
|
||||
/// This method will fail if the socket is not connected.
|
||||
///
|
||||
/// This method may fail with a [`ConnectionRefused`] error if the remote
|
||||
/// address has replied with ICMP Unreachable to a previously sent packet.
|
||||
/// However, this behavior depends on the OS.
|
||||
///
|
||||
/// [`connect`]: method@Self::connect
|
||||
/// [`ConnectionRefused`]: std::io::ErrorKind::ConnectionRefused
|
||||
///
|
||||
/// # Return
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user