Fix early-data

This commit is contained in:
Gleb Pomykalov 2019-11-27 01:57:32 +03:00 committed by quininer
parent 61b2f5b3bc
commit 078f6c0e73

View File

@ -10,10 +10,11 @@ use std::task::{ Context, Poll };
use std::time::Duration; use std::time::Duration;
use tokio::prelude::*; use tokio::prelude::*;
use tokio::net::TcpStream; use tokio::net::TcpStream;
use tokio::timer::delay_for; use tokio::time::delay_for;
use futures_util::{ future, ready }; use futures_util::{ future, ready };
use rustls::ClientConfig; use rustls::ClientConfig;
use tokio_rustls::{ TlsConnector, client::TlsStream }; use tokio_rustls::{ TlsConnector, client::TlsStream };
use std::future::Future;
struct Read1<T>(T); struct Read1<T>(T);