@@ -523,16 +523,17 @@ impl<L> Server<L> {
523523 let timeout = self . timeout ;
524524 let max_frame_size = self . max_frame_size ;
525525
526- // FIXME: this requires additonal implementation here.
527- let http2_only = !self . accept_http1 ;
526+ // TODO: Reqiures support from hyper-util
527+ let _http2_only = !self . accept_http1 ;
528528
529529 let http2_keepalive_interval = self . http2_keepalive_interval ;
530530 let http2_keepalive_timeout = self
531531 . http2_keepalive_timeout
532532 . unwrap_or_else ( || Duration :: new ( DEFAULT_HTTP2_KEEPALIVE_TIMEOUT_SECS , 0 ) ) ;
533533 let http2_adaptive_window = self . http2_adaptive_window ;
534534
535- let http2_max_pending_accept_reset_streams = self . http2_max_pending_accept_reset_streams ;
535+ // TODO: Requires a new release of hyper and hyper-util
536+ let _http2_max_pending_accept_reset_streams = self . http2_max_pending_accept_reset_streams ;
536537
537538 let make_service = self . service_builder . service ( svc) ;
538539
@@ -547,6 +548,9 @@ impl<L> Server<L> {
547548
548549 let mut builder = hyper_util:: server:: conn:: auto:: Builder :: new ( TokioExecutor :: new ( ) ) ;
549550
551+ //TODO: Set http2-only when available in hyper_util
552+ //builder.http2_only(http2_only);
553+
550554 builder
551555 . http2 ( )
552556 . initial_connection_window_size ( init_connection_window_size)
@@ -555,8 +559,8 @@ impl<L> Server<L> {
555559 . keep_alive_interval ( http2_keepalive_interval)
556560 . keep_alive_timeout ( http2_keepalive_timeout)
557561 . adaptive_window ( http2_adaptive_window. unwrap_or_default ( ) )
558- // FIXME : wait for this to be added to hyper-util
559- // .max_pending_accept_reset_streams(http2_max_pending_accept_reset_streams)
562+ // TODO : wait for this to be added to hyper-util
563+ //.max_pending_accept_reset_streams(http2_max_pending_accept_reset_streams)
560564 . max_frame_size ( max_frame_size) ;
561565
562566 let ( signal_tx, signal_rx) = tokio:: sync:: watch:: channel ( ( ) ) ;
@@ -1068,18 +1072,13 @@ where
10681072 }
10691073}
10701074
1075+ // A future which only yields `Poll::Ready` once, and thereafter yields `Poll::Pending`.
10711076#[ pin_project]
10721077struct Fuse < F > {
10731078 #[ pin]
10741079 inner : Option < F > ,
10751080}
10761081
1077- impl < F > Fuse < F > {
1078- fn is_terminated ( self : & Pin < & mut Self > ) -> bool {
1079- self . inner . is_none ( )
1080- }
1081- }
1082-
10831082impl < F > Future for Fuse < F >
10841083where
10851084 F : Future ,
0 commit comments