fn goaway_from_server_increase_id() {
        let mut s = Session::default().unwrap();
        s.handshake().unwrap();

        s.send_frame_server(
            frame::Frame::GoAway { id: 0 },
            s.server.control_stream_id.unwrap(),
            false,
        )
        .unwrap();

        s.send_frame_server(
            frame::Frame::GoAway { id: 4 },
            s.server.control_stream_id.unwrap(),
            false,
        )
        .unwrap();

        assert_eq!(s.poll_client(), Ok((0, Event::GoAway)));

        assert_eq!(s.poll_client(), Err(Error::IdError));
    }
/// Send multiple GOAWAY frames from the server, that increase the goaway
/// ID.
Send multiple GOAWAY frames from the server, that increase the goaway
ID.
Send multiple GOAWAY frames from the server that increase the goaway ID .
fn goaway_from_server_increase_id() {
        let mut s = Session::default().unwrap();
        s.handshake().unwrap();
        s.send_frame_server(
            frame::Frame::GoAway { id: 0 },
            s.server.control_stream_id.unwrap(),
            false,
        )
        .unwrap();
        s.send_frame_server(
            frame::Frame::GoAway { id: 4 },
            s.server.control_stream_id.unwrap(),
            false,
        )
        .unwrap();
        assert_eq!(s.poll_client(), Ok((0, Event::GoAway)));
        assert_eq!(s.poll_client(), Err(Error::IdError));
    }
fn goaway_from_server_increase_id ( ) { let mut s = Session :: default ( ) . unwrap ( ) ; s . handshake ( ) . unwrap ( ) ; s . send_frame_server ( frame :: Frame :: GoAway { id : 0 } , s . server . control_stream_id . unwrap ( ) , false , ) . unwrap ( ) ; s . send_frame_server ( frame :: Frame :: GoAway { id : 4 } , s . server . control_stream_id . unwrap ( ) , false , ) . unwrap ( ) ; assert_eq ! ( s poll_client ( ) Ok ( ( 0 Event GoAway ) ) ) ; assert_eq ! ( s poll_client ( ) Err ( Error IdError ) ) ; }
Send multiple GOAWAY frames from the server, that increase the goaway
ID.
Send multiple GOAWAY frames from the server that increase the goaway ID .