Browse Source

Disable gzip response encoding in Java/dropwizard (#2647)

Radoslav Petrov 8 years ago
parent
commit
2e003dc3c1

+ 7 - 1
frameworks/Java/dropwizard/hello-world-mongo.yml

@@ -5,6 +5,12 @@ server:
     type: http
     type: http
     port: 9090
     port: 9090
     useServerHeader: true
     useServerHeader: true
+    # There is no proxy in front of the server
+    useForwardedHeaders: false
+
+  # Test requirements forbid gzip compression of the replies
+  gzip:
+    enabled: false
 
 
   requestLog:
   requestLog:
     appenders: []
     appenders: []
@@ -15,4 +21,4 @@ logging:
 mongo:
 mongo:
   host: 127.0.0.1
   host: 127.0.0.1
   port: 27017
   port: 27017
-  db: hello_world
+  db: hello_world

+ 6 - 0
frameworks/Java/dropwizard/hello-world-mysql.yml

@@ -5,6 +5,12 @@ server:
     type: http
     type: http
     port: 9090
     port: 9090
     useServerHeader: true
     useServerHeader: true
+    # There is no proxy in front of the server
+    useForwardedHeaders: false
+
+  # Test requirements forbid gzip compression of the replies
+  gzip:
+    enabled: false
 
 
   requestLog:
   requestLog:
     appenders: []
     appenders: []

+ 8 - 2
frameworks/Java/dropwizard/hello-world-postgres.yml

@@ -5,6 +5,12 @@ server:
     type: http
     type: http
     port: 9090
     port: 9090
     useServerHeader: true
     useServerHeader: true
+    # There is no proxy in front of the server
+    useForwardedHeaders: false
+
+  # Test requirements forbid gzip compression of the replies
+  gzip:
+    enabled: false
 
 
   requestLog:
   requestLog:
     appenders: []
     appenders: []
@@ -23,7 +29,7 @@ database:
   password: benchmarkdbpass
   password: benchmarkdbpass
 
 
   # the JDBC URL
   # the JDBC URL
-  url: jdbc:postgresql://127.0.0.1:5432/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true
+  url: jdbc:postgresql://127.0.0.1:5432/hello_world
 
 
   # any properties specific to your JDBC driver:
   # any properties specific to your JDBC driver:
   properties:
   properties:
@@ -40,4 +46,4 @@ database:
   maxSize: 256
   maxSize: 256
 
 
   # whether or not idle connections should be validated
   # whether or not idle connections should be validated
-  checkConnectionWhileIdle: false
+  checkConnectionWhileIdle: false