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

        let stream_id = s.client.next_uni_stream_id;

        let mut d = [42; 8];
        let mut b = octets::OctetsMut::with_slice(&mut d);

        s.pipe
            .client
            .stream_send(
                stream_id,
                b.put_varint(stream::HTTP3_CONTROL_STREAM_TYPE_ID).unwrap(),
                false,
            )
            .unwrap();

        s.advance().ok();

        assert_eq!(s.poll_server(), Err(Error::StreamCreationError));
    }
/// Client opens multiple control streams, which is forbidden.
Client opens multiple control streams, which is forbidden.
Client opens multiple control streams which is forbidden .
fn open_multiple_control_streams() {
        let mut s = Session::default().unwrap();
        s.handshake().unwrap();
        let stream_id = s.client.next_uni_stream_id;
        let mut d = [42; 8];
        let mut b = octets::OctetsMut::with_slice(&mut d);
        s.pipe
            .client
            .stream_send(
                stream_id,
                b.put_varint(stream::HTTP3_CONTROL_STREAM_TYPE_ID).unwrap(),
                false,
            )
            .unwrap();
        s.advance().ok();
        assert_eq!(s.poll_server(), Err(Error::StreamCreationError));
    }
fn open_multiple_control_streams ( ) { let mut s = Session :: default ( ) . unwrap ( ) ; s . handshake ( ) . unwrap ( ) ; let stream_id = s . client . next_uni_stream_id ; let mut d = [ 42 ; 8 ] ; let mut b = octets :: OctetsMut :: with_slice ( & mut d ) ; s . pipe . client . stream_send ( stream_id , b . put_varint ( stream :: HTTP3_CONTROL_STREAM_TYPE_ID ) . unwrap ( ) , false , ) . unwrap ( ) ; s . advance ( ) . ok ( ) ; assert_eq ! ( s poll_server ( ) Err ( Error StreamCreationError ) ) ; }
Client opens multiple control streams, which is forbidden.
Client opens multiple control streams which is forbidden .