@@ -41,27 +41,6 @@ impl<O: 'static> IncomingConnection<O> {
4141 self . stream . shutdown ( ) . await
4242 }
4343
44- /// Reads the linger duration for this socket by getting the `SO_LINGER` option.
45- ///
46- /// For more information about this option, see [`set_linger`](crate::server::connection::IncomingConnection::set_linger).
47- #[ inline]
48- pub fn linger ( & self ) -> std:: io:: Result < Option < Duration > > {
49- self . stream . linger ( )
50- }
51-
52- /// Sets the linger duration of this socket by setting the `SO_LINGER` option.
53- ///
54- /// This option controls the action taken when a stream has unsent messages and the stream is closed.
55- /// If `SO_LINGER` is set, the system shall block the process until it can transmit the data or until the time expires.
56- ///
57- /// If `SO_LINGER` is not specified, and the stream is closed, the system handles the call in a way
58- /// that allows the process to continue as quickly as possible.
59- #[ inline]
60- pub fn set_linger ( & self , dur : Option < Duration > ) -> std:: io:: Result < ( ) > {
61- #[ allow( deprecated) ]
62- self . stream . set_linger ( dur)
63- }
64-
6544 /// Gets the value of the `TCP_NODELAY` option on this socket.
6645 ///
6746 /// For more information about this option, see
@@ -196,28 +175,6 @@ impl Authenticated {
196175 self . 0 . peer_addr ( )
197176 }
198177
199- /// Reads the linger duration for this socket by getting the `SO_LINGER` option.
200- ///
201- /// For more information about this option, see
202- /// [`set_linger`](crate::server::connection::Authenticated::set_linger).
203- #[ inline]
204- pub fn linger ( & self ) -> std:: io:: Result < Option < Duration > > {
205- self . 0 . linger ( )
206- }
207-
208- /// Sets the linger duration of this socket by setting the `SO_LINGER` option.
209- ///
210- /// This option controls the action taken when a stream has unsent messages and the stream is closed.
211- /// If `SO_LINGER` is set, the system shall block the process until it can transmit the data or until the time expires.
212- ///
213- /// If `SO_LINGER` is not specified, and the stream is closed, the system handles the call in a way
214- /// that allows the process to continue as quickly as possible.
215- #[ inline]
216- pub fn set_linger ( & self , dur : Option < Duration > ) -> std:: io:: Result < ( ) > {
217- #[ allow( deprecated) ]
218- self . 0 . set_linger ( dur)
219- }
220-
221178 /// Gets the value of the `TCP_NODELAY` option on this socket.
222179 ///
223180 /// For more information about this option, see
0 commit comments