HBASE-24041 [regression] Increase RESTServer buffer size back to 64k (#1339)
* HBASE-24041 [regression] Increase RESTServer buffer size back to 64k * HBASE-24041 [regression] Increase RESTServer buffer size back to 64k
This commit is contained in:
parent
aa53493ae8
commit
9a212ee487
|
@ -90,6 +90,7 @@ public class RESTServer implements Constants {
|
||||||
static final String REST_CSRF_METHODS_TO_IGNORE_KEY = "hbase.rest.csrf.methods.to.ignore";
|
static final String REST_CSRF_METHODS_TO_IGNORE_KEY = "hbase.rest.csrf.methods.to.ignore";
|
||||||
static final String REST_CSRF_METHODS_TO_IGNORE_DEFAULT = "GET,OPTIONS,HEAD,TRACE";
|
static final String REST_CSRF_METHODS_TO_IGNORE_DEFAULT = "GET,OPTIONS,HEAD,TRACE";
|
||||||
public static final String SKIP_LOGIN_KEY = "hbase.rest.skip.login";
|
public static final String SKIP_LOGIN_KEY = "hbase.rest.skip.login";
|
||||||
|
static final int DEFAULT_HTTP_MAX_HEADER_SIZE = 64 * 1024; // 64k
|
||||||
|
|
||||||
private static final String PATH_SPEC_ANY = "/*";
|
private static final String PATH_SPEC_ANY = "/*";
|
||||||
|
|
||||||
|
@ -290,6 +291,9 @@ public class RESTServer implements Constants {
|
||||||
HttpConfiguration httpConfig = new HttpConfiguration();
|
HttpConfiguration httpConfig = new HttpConfiguration();
|
||||||
httpConfig.setSecureScheme("https");
|
httpConfig.setSecureScheme("https");
|
||||||
httpConfig.setSecurePort(servicePort);
|
httpConfig.setSecurePort(servicePort);
|
||||||
|
httpConfig.setHeaderCacheSize(DEFAULT_HTTP_MAX_HEADER_SIZE);
|
||||||
|
httpConfig.setRequestHeaderSize(DEFAULT_HTTP_MAX_HEADER_SIZE);
|
||||||
|
httpConfig.setResponseHeaderSize(DEFAULT_HTTP_MAX_HEADER_SIZE);
|
||||||
httpConfig.setSendServerVersion(false);
|
httpConfig.setSendServerVersion(false);
|
||||||
httpConfig.setSendDateHeader(false);
|
httpConfig.setSendDateHeader(false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue