|
|
@ -1,6 +1,8 @@ |
|
|
|
//! Verifies that we can read data messages even if we have initiated a close handshake,
|
|
|
|
//! Verifies that we can read data messages even if we have initiated a close handshake,
|
|
|
|
//! but before we got confirmation.
|
|
|
|
//! but before we got confirmation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#![cfg(feature = "handshake")] |
|
|
|
|
|
|
|
|
|
|
|
use std::{ |
|
|
|
use std::{ |
|
|
|
net::TcpListener, |
|
|
|
net::TcpListener, |
|
|
|
process::exit, |
|
|
|
process::exit, |
|
|
@ -8,7 +10,6 @@ use std::{ |
|
|
|
time::Duration, |
|
|
|
time::Duration, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
#[cfg(feature = "handshake")] |
|
|
|
|
|
|
|
use tungstenite::{accept, connect, error::ProtocolError, Error, Message}; |
|
|
|
use tungstenite::{accept, connect, error::ProtocolError, Error, Message}; |
|
|
|
use url::Url; |
|
|
|
use url::Url; |
|
|
|
|
|
|
|
|
|
|
|