@@ -81,7 +81,7 @@ macro_rules! test {
81
81
assert_eq!( s( & buf[ ..n] ) , expected, "expected is invalid" ) ;
82
82
83
83
inc. write_all( $server_reply. as_ref( ) ) . unwrap( ) ;
84
- tx. complete ( ( ) ) ;
84
+ let _ = tx. send ( ( ) ) ;
85
85
} ) ;
86
86
87
87
let rx = rx. map_err( |_| hyper:: Error :: Io ( io:: Error :: new( io:: ErrorKind :: Other , "thread panicked" ) ) ) ;
@@ -242,13 +242,13 @@ fn client_keep_alive() {
242
242
let mut buf = [ 0 ; 4096 ] ;
243
243
sock. read ( & mut buf) . expect ( "read 1" ) ;
244
244
sock. write_all ( b"HTTP/1.1 200 OK\r \n Content-Length: 0\r \n \r \n " ) . expect ( "write 1" ) ;
245
- tx1. complete ( ( ) ) ;
245
+ let _ = tx1. send ( ( ) ) ;
246
246
247
247
sock. read ( & mut buf) . expect ( "read 2" ) ;
248
248
let second_get = b"GET /b HTTP/1.1\r \n " ;
249
249
assert_eq ! ( & buf[ ..second_get. len( ) ] , second_get) ;
250
250
sock. write_all ( b"HTTP/1.1 200 OK\r \n Content-Length: 0\r \n \r \n " ) . expect ( "write 2" ) ;
251
- tx2. complete ( ( ) ) ;
251
+ let _ = tx2. send ( ( ) ) ;
252
252
} ) ;
253
253
254
254
@@ -285,7 +285,7 @@ fn client_pooled_socket_disconnected() {
285
285
let out = format!("HTTP/1.1 200 OK\r\nContent-Length: {}\r\n\r\n{}", remote_addr.len(), remote_addr);
286
286
sock.write_all(out.as_bytes()).expect("write 1");
287
287
drop(sock);
288
- tx1.complete (());
288
+ tx1.send (());
289
289
290
290
let mut sock = server.accept().unwrap().0;
291
291
sock.read(&mut buf).expect("read 2");
@@ -294,7 +294,7 @@ fn client_pooled_socket_disconnected() {
294
294
let remote_addr = sock.peer_addr().unwrap().to_string();
295
295
let out = format!("HTTP/1.1 200 OK\r\nContent-Length: {}\r\n\r\n{}", remote_addr.len(), remote_addr);
296
296
sock.write_all(out.as_bytes()).expect("write 2");
297
- tx2.complete (());
297
+ tx2.send (());
298
298
});
299
299
300
300
// spin shortly so we receive the hangup on the client socket
0 commit comments