docs(server): add a warning to Listening::close() in order to reflect #338
This commit is contained in:
@@ -407,6 +407,9 @@ impl Drop for Listening {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Listening {
|
impl Listening {
|
||||||
|
/// Warning: This function doesn't work. The server remains listening after you called
|
||||||
|
/// it. See https://github.com/hyperium/hyper/issues/338 for more details.
|
||||||
|
///
|
||||||
/// Stop the server from listening to its socket address.
|
/// Stop the server from listening to its socket address.
|
||||||
pub fn close(&mut self) -> ::Result<()> {
|
pub fn close(&mut self) -> ::Result<()> {
|
||||||
let _ = self._guard.take();
|
let _ = self._guard.take();
|
||||||
|
|||||||
Reference in New Issue
Block a user