mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-25 01:51:23 +02:00
add StreamConfiguration service
This commit is contained in:
@ -1016,7 +1016,10 @@ fn test_server_cookies() {
|
||||
#[test]
|
||||
fn test_custom_pipeline() {
|
||||
use actix::System;
|
||||
use actix_web::server::{HttpService, KeepAlive, WorkerSettings};
|
||||
use actix_net::service::NewServiceExt;
|
||||
use actix_web::server::{
|
||||
HttpService, KeepAlive, StreamConfiguration, WorkerSettings,
|
||||
};
|
||||
|
||||
let addr = test::TestServer::unused_addr();
|
||||
|
||||
@ -1034,7 +1037,9 @@ fn test_custom_pipeline() {
|
||||
.server_address(addr)
|
||||
.finish();
|
||||
|
||||
HttpService::new(settings)
|
||||
StreamConfiguration::new()
|
||||
.nodelay(true)
|
||||
.and_then(HttpService::new(settings))
|
||||
}).unwrap()
|
||||
.run();
|
||||
});
|
||||
|
@ -7,7 +7,7 @@ extern crate rand;
|
||||
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
use std::sync::Arc;
|
||||
use std::{thread, time};
|
||||
use std::thread;
|
||||
|
||||
use bytes::Bytes;
|
||||
use futures::Stream;
|
||||
|
Reference in New Issue
Block a user