Class ServerLimitsConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionSet the SETTINGS_HEADER_TABLE_SIZE HTTP/2 setting.The maximum size of a request body.The max HTTP chunk sizeSet SETTINGS_MAX_CONCURRENT_STREAMS HTTP/2 setting.The maximum number of connections that are allowed at any one time.The maximum length of a form attribute.Set the maximum number of bytes a server can buffer when decoding a form.int
Set the maximum number of fields of a form.Set the SETTINGS_MAX_FRAME_SIZE HTTP/2 setting.Set the SETTINGS_MAX_HEADER_LIST_SIZE HTTP/2 setting.The maximum length of all headers.int
The maximum length of the initial line (e.g.int
The maximum number of HTTP request parameters permitted for incoming requests.Set the max number of RST frame allowed per time window, this is used to prevent HTTP/2 RST frame flood DDOS attacks.Set the duration of the time window when checking the max number of RST frames, this is used to prevent HTTP/2 RST frame flood DDOS attacks.. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
maxHeaderSize
The maximum length of all headers. -
maxBodySize
The maximum size of a request body. -
maxChunkSize
The max HTTP chunk size -
maxInitialLineLength
The maximum length of the initial line (e.g."GET / HTTP/1.0"
). -
maxFormAttributeSize
The maximum length of a form attribute. -
maxFormFields
Set the maximum number of fields of a form. Set to-1
to allow unlimited number of attributes. -
maxFormBufferedBytes
Set the maximum number of bytes a server can buffer when decoding a form. Set to-1
to allow unlimited length -
maxParameters
The maximum number of HTTP request parameters permitted for incoming requests.If a client sends more than this number of parameters in a request, the connection is closed.
-
maxConnections
The maximum number of connections that are allowed at any one time. If this is set it is recommended to set a short idle timeout. -
headerTableSize
Set the SETTINGS_HEADER_TABLE_SIZE HTTP/2 setting.Allows the sender to inform the remote endpoint of the maximum size of the header compression table used to decode header blocks, in octets. The encoder can select any size equal to or less than this value by using signaling specific to the header compression format inside a header block. The initial value is
4,096
octets. -
maxConcurrentStreams
Set SETTINGS_MAX_CONCURRENT_STREAMS HTTP/2 setting.Indicates the maximum number of concurrent streams that the sender will allow. This limit is directional: it applies to the number of streams that the sender permits the receiver to create. Initially, there is no limit to this value. It is recommended that this value be no smaller than 100, to not unnecessarily limit parallelism.
-
maxFrameSize
Set the SETTINGS_MAX_FRAME_SIZE HTTP/2 setting. Indicates the size of the largest frame payload that the sender is willing to receive, in octets. The initial value is2^14
(16,384) octets. -
maxHeaderListSize
Set the SETTINGS_MAX_HEADER_LIST_SIZE HTTP/2 setting. This advisory setting informs a peer of the maximum size of header list that the sender is prepared to accept, in octets. The value is based on the uncompressed size of header fields, including the length of the name and value in octets plus an overhead of 32 octets for each header field. The default value is8192
-
rstFloodMaxRstFramePerWindow
Set the max number of RST frame allowed per time window, this is used to prevent HTTP/2 RST frame flood DDOS attacks. The default value is200
, setting zero or a negative value, disables flood protection. -
rstFloodWindowDuration
Set the duration of the time window when checking the max number of RST frames, this is used to prevent HTTP/2 RST frame flood DDOS attacks.. The default value is30 s
, setting zero or a negative value, disables flood protection.
-
-
Constructor Details
-
ServerLimitsConfig
public ServerLimitsConfig()
-