Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for MaxHeaderBytes (0.27 sec)

  1. internal/http/server_test.go

    			t.Fatalf("Case %v: server.ShutdownTimeout: expected: %v, got: %v", (i + 1), DefaultShutdownTimeout, server.ShutdownTimeout)
    		}
    
    		if server.MaxHeaderBytes != DefaultMaxHeaderBytes {
    			t.Fatalf("Case %v: server.MaxHeaderBytes: expected: %v, got: %v", (i + 1), DefaultMaxHeaderBytes, server.MaxHeaderBytes)
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/deprecated_insecure_serving.go

    	insecureServer := &http.Server{
    		Addr:           s.Listener.Addr().String(),
    		Handler:        handler,
    		MaxHeaderBytes: 1 << 20,
    
    		IdleTimeout:       90 * time.Second, // matches http.DefaultTransport keep-alive timeout
    		ReadHeaderTimeout: 32 * time.Second, // just shy of requestTimeoutUpperBound
    	}
    
    	if len(s.Name) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 27 15:58:45 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  3. src/net/http/doc.go

    custom Server:
    
    	s := &http.Server{
    		Addr:           ":8080",
    		Handler:        myHandler,
    		ReadTimeout:    10 * time.Second,
    		WriteTimeout:   10 * time.Second,
    		MaxHeaderBytes: 1 << 20,
    	}
    	log.Fatal(s.ListenAndServe())
    
    # HTTP/2
    
    Starting with Go 1.6, the http package has transparent support for the
    HTTP/2 protocol when using HTTPS. Programs that must disable HTTP/2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/server_test.go

    	stopCh := make(chan struct{})
    	defer close(stopCh)
    	server := &http.Server{
    		Handler: http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    			w.WriteHeader(http.StatusOK)
    		}),
    		MaxHeaderBytes: 1 << 20,
    		TLSConfig:      tlsConfig,
    	}
    	listener, _, err := createListener("tcp", "127.0.0.1:0")
    	if err != nil {
    		t.Fatal(err)
    	}
    	apiPort := listener.Addr().String()
    	go func() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 18:29:15 UTC 2021
    - 6K bytes
    - Viewed (0)
  5. pkg/ctrlz/ctrlz.go

    		httpServer: http.Server{
    			Addr:           listener.Addr().(*net.TCPAddr).String(),
    			ReadTimeout:    10 * time.Second,
    			WriteTimeout:   time.Minute, // High timeout to allow profiles to run
    			MaxHeaderBytes: 1 << 20,
    			Handler:        router,
    		},
    	}
    
    	s.shutdown.Add(1)
    	go s.listen()
    
    	return s, nil
    }
    
    func (s *Server) listen() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 21:22:53 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/proxy/streamtunnel.go

    	// backendResponse contains the parsed headers.
    	// backendResponseBytes are the raw bytes the headers were parsed from.
    	InitializeWrite(backendResponse *http.Response, backendResponseBytes []byte) error
    }
    
    const maxHeaderBytes = 1 << 20
    
    // token for normal header / body separation (\r\n\r\n, but go tolerates the leading \r being absent)
    var lfCRLF = []byte("\n\r\n")
    
    // token for header / body separation without \r (which go tolerates)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  7. internal/http/server.go

    }
    
    // NewServer - creates new HTTP server using given arguments.
    func NewServer(addrs []string) *Server {
    	httpServer := &Server{
    		Addrs: addrs,
    	}
    	// This is not configurable for now.
    	httpServer.MaxHeaderBytes = DefaultMaxHeaderBytes
    	return httpServer
    }
    
    // SetMinIOVersion -- MinIO version from the main package is set here
    func SetMinIOVersion(version string) {
    	GlobalMinIOVersion = version
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Feb 09 21:25:16 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/secure_serving.go

    	}
    
    	tlsConfig, err := s.tlsConfig(stopCh)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	secureServer := &http.Server{
    		Addr:           s.Listener.Addr().String(),
    		Handler:        handler,
    		MaxHeaderBytes: 1 << 20,
    		TLSConfig:      tlsConfig,
    
    		IdleTimeout:       90 * time.Second, // matches http.DefaultTransport keep-alive timeout
    		ReadHeaderTimeout: 32 * time.Second, // just shy of requestTimeoutUpperBound
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 20:54:07 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  9. pkg/kubelet/server/server.go

    		Handler:        &handler,
    		IdleTimeout:    90 * time.Second, // matches http.DefaultTransport keep-alive timeout
    		ReadTimeout:    4 * 60 * time.Minute,
    		WriteTimeout:   4 * 60 * time.Minute,
    		MaxHeaderBytes: 1 << 20,
    	}
    
    	if tlsOptions != nil {
    		s.TLSConfig = tlsOptions.Config
    		// Passing empty strings as the cert and key files means no
    		// cert/keys are specified and GetCertificate in the TLSConfig
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 40.1K bytes
    - Viewed (0)
  10. src/net/http/server.go

    // in an HTTP request.
    // This can be overridden by setting [Server.MaxHeaderBytes].
    const DefaultMaxHeaderBytes = 1 << 20 // 1 MB
    
    func (srv *Server) maxHeaderBytes() int {
    	if srv.MaxHeaderBytes > 0 {
    		return srv.MaxHeaderBytes
    	}
    	return DefaultMaxHeaderBytes
    }
    
    func (srv *Server) initialReadLimitSize() int64 {
    	return int64(srv.maxHeaderBytes()) + 4096 // bufio slop
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
Back to top