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

        s.server.send_goaway(&mut s.pipe.server, 4000).unwrap();

        s.advance().ok();

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

        assert_eq!(s.send_request(true), Err(Error::FrameUnexpected));
    }
/// A client MUST NOT send a request after it receives GOAWAY.
A client MUST NOT send a request after it receives GOAWAY.
A client MUST NOT send a request after it receives GOAWAY .
fn client_request_after_goaway() {
        let mut s = Session::default().unwrap();
        s.handshake().unwrap();
        s.server.send_goaway(&mut s.pipe.server, 4000).unwrap();
        s.advance().ok();
        assert_eq!(s.poll_client(), Ok((4000, Event::GoAway)));
        assert_eq!(s.send_request(true), Err(Error::FrameUnexpected));
    }
fn client_request_after_goaway ( ) { let mut s = Session :: default ( ) . unwrap ( ) ; s . handshake ( ) . unwrap ( ) ; s . server . send_goaway ( & mut s . pipe . server , 4000 ) . unwrap ( ) ; s . advance ( ) . ok ( ) ; assert_eq ! ( s poll_client ( ) Ok ( ( 4000 Event GoAway ) ) ) ; assert_eq ! ( s send_request ( true ) Err ( Error FrameUnexpected ) ) ; }
A client MUST NOT send a request after it receives GOAWAY.
A client MUST NOT send a request after it receives GOAWAY .