Get server working again (mostly)

This commit is contained in:
Carl Lerche
2017-08-09 10:36:03 -07:00
parent 38762a9711
commit 8f2b69c280
7 changed files with 176 additions and 61 deletions

View File

@@ -4,7 +4,7 @@ extern crate futures;
extern crate mock_io;
extern crate env_logger;
// use h2::server;
use h2::server::Server;
use futures::*;
@@ -13,7 +13,6 @@ const SETTINGS_ACK: &'static [u8] = &[0, 0, 0, 4, 1, 0, 0, 0, 0];
#[test]
fn read_preface_in_multiple_frames() {
/*
let _ = ::env_logger::init().unwrap();
let mock = mock_io::Builder::new()
@@ -25,9 +24,13 @@ fn read_preface_in_multiple_frames() {
.read(SETTINGS_ACK)
.build();
let h2 = server::handshake(mock)
let h2 = Server::handshake(mock)
.wait().unwrap();
assert!(Stream::wait(h2).next().is_none());
*/
}
#[test]
#[ignore]
fn accept_with_pending_connections_after_socket_close() {
}