func TestS3H1HeaderFieldBuffer(t *testing.T) {
	st := newServerTesterTLS([]string{"--npn-list=spdy/3.1", "--request-header-field-buffer=10"}, t, func(w http.ResponseWriter, r *http.Request) {
		t.Fatal("execution path should not be here")
	})
	defer st.Close()

	res, err := st.spdy(requestParam{
		name: "TestS3H1HeaderFieldBuffer",
	})
	if err != nil {
		t.Fatalf("Error st.spdy() = %v", err)
	}
	if got, want := res.spdyRstErrCode, spdy.InternalError; got != want {
		t.Errorf("res.spdyRstErrCode: %v; want %v", got, want)
	}
}
// TestS3H1HeaderFieldBuffer tests that request with header fields
// larger than configured buffer size is rejected.

TestS3H1HeaderFieldBuffer tests that request with header fields
larger than configured buffer size is rejected.
// TestS3H1HeaderFieldBuffer tests that request with header fields // larger than configured buffer size is rejected .
func TestS3H1HeaderFieldBuffer(t *testing.T) {
	st := newServerTesterTLS([]string{"--npn-list=spdy/3.1", "--request-header-field-buffer=10"}, t, func(w http.ResponseWriter, r *http.Request) {
		t.Fatal("execution path should not be here")
	})
	defer st.Close()
	res, err := st.spdy(requestParam{
		name: "TestS3H1HeaderFieldBuffer",
	})
	if err != nil {
		t.Fatalf("Error st.spdy() = %v", err)
	}
	if got, want := res.spdyRstErrCode, spdy.InternalError; got != want {
		t.Errorf("res.spdyRstErrCode: %v; want %v", got, want)
	}
}
func TestS3H1HeaderFieldBuffer ( t * testing . T ) { st := newServerTesterTLS ( [ ] string { " " , " " } , t , func ( w http . ResponseWriter , r * http . Request ) { t . Fatal ( " " ) } ) defer st . Close ( ) res , err := st . spdy ( requestParam { name : " " , } ) if err != nil { t . Fatalf ( " " , err ) } if got , want := res . spdyRstErrCode , spdy . InternalError ; got != want { t . Errorf ( " " , got , want ) } }
TestS3H1HeaderFieldBuffer tests that request with header fields
larger than configured buffer size is rejected.
TestS3H1HeaderFieldBuffer tests that request with header fields larger than configured buffer size is rejected .