Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1474)

Issue 598453003: Add HttpServer:autoCompress option, to disable auto gzip compression. (Closed)

Created:
6 years, 3 months ago by Anders Johnsen
Modified:
6 years, 3 months ago
CC:
reviews_dartlang.org, nweiz
Visibility:
Public.

Description

Add HttpServer:autoCompress option, to disable auto gzip compression. BUG= R=lrn@google.com, sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=40587

Patch Set 1 #

Patch Set 2 : Add 'To disable, ...' #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : Fix test. #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -2 lines) Patch
M pkg/http_multi_server/CHANGELOG.md View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/http_multi_server/lib/http_multi_server.dart View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M pkg/http_multi_server/pubspec.yaml View 1 2 3 1 chunk +1 line, -1 line 2 comments Download
M pkg/http_multi_server/test/http_multi_server_test.dart View 1 2 3 4 1 chunk +21 lines, -0 lines 4 comments Download
M sdk/lib/io/http.dart View 1 2 1 chunk +12 lines, -0 lines 2 comments Download
M sdk/lib/io/http_impl.dart View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M tests/standalone/io/http_compression_test.dart View 1 2 3 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (2 generated)
Anders Johnsen
6 years, 3 months ago (2014-09-23 07:02:25 UTC) #2
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/598453003/diff/20001/sdk/lib/io/http.dart File sdk/lib/io/http.dart (right): https://codereview.chromium.org/598453003/diff/20001/sdk/lib/io/http.dart#newcode182 sdk/lib/io/http.dart:182: * Get and set if the [HttpServer] should ...
6 years, 3 months ago (2014-09-23 07:24:52 UTC) #3
Søren Gjesse
lgtm It would be great if we can make a simple way of turning this ...
6 years, 3 months ago (2014-09-23 07:56:23 UTC) #4
Anders Johnsen
Made default `false`. PTAL. https://codereview.chromium.org/598453003/diff/20001/sdk/lib/io/http.dart File sdk/lib/io/http.dart (right): https://codereview.chromium.org/598453003/diff/20001/sdk/lib/io/http.dart#newcode182 sdk/lib/io/http.dart:182: * Get and set if ...
6 years, 3 months ago (2014-09-23 08:35:34 UTC) #5
Søren Gjesse
lgtm
6 years, 3 months ago (2014-09-23 08:53:54 UTC) #6
Anders Johnsen
PTAL - updated http_multi_server
6 years, 3 months ago (2014-09-23 09:14:50 UTC) #7
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/598453003/diff/80001/sdk/lib/io/http.dart File sdk/lib/io/http.dart (right): https://codereview.chromium.org/598453003/diff/80001/sdk/lib/io/http.dart#newcode188 sdk/lib/io/http.dart:188: * The default value is `false` (compression disabled). ...
6 years, 3 months ago (2014-09-23 10:39:59 UTC) #8
Lasse Reichstein Nielsen
lgtm lgtm
6 years, 3 months ago (2014-09-23 10:40:01 UTC) #9
Anders Johnsen
https://codereview.chromium.org/598453003/diff/80001/sdk/lib/io/http.dart File sdk/lib/io/http.dart (right): https://codereview.chromium.org/598453003/diff/80001/sdk/lib/io/http.dart#newcode188 sdk/lib/io/http.dart:188: * The default value is `false` (compression disabled). On ...
6 years, 3 months ago (2014-09-23 11:08:05 UTC) #10
Anders Johnsen
Committed patchset #5 (id:80001) manually as 40587 (presubmit successful).
6 years, 3 months ago (2014-09-23 11:08:36 UTC) #11
kevmoo
On 2014/09/23 11:08:36, Anders Johnsen wrote: > Committed patchset #5 (id:80001) manually as 40587 (presubmit ...
6 years, 3 months ago (2014-09-23 17:14:47 UTC) #12
nweiz
lgtm https://codereview.chromium.org/598453003/diff/80001/pkg/http_multi_server/test/http_multi_server_test.dart File pkg/http_multi_server/test/http_multi_server_test.dart (right): https://codereview.chromium.org/598453003/diff/80001/pkg/http_multi_server/test/http_multi_server_test.dart#newcode62 pkg/http_multi_server/test/http_multi_server_test.dart:62: ); Nit: "});" https://codereview.chromium.org/598453003/diff/80001/pkg/http_multi_server/test/http_multi_server_test.dart#newcode63 pkg/http_multi_server/test/http_multi_server_test.dart:63: test("autoCompress= sets the ...
6 years, 3 months ago (2014-09-23 19:34:46 UTC) #14
kevmoo
Must change pubspec constraint on SDK https://codereview.chromium.org/598453003/diff/80001/pkg/http_multi_server/pubspec.yaml File pkg/http_multi_server/pubspec.yaml (right): https://codereview.chromium.org/598453003/diff/80001/pkg/http_multi_server/pubspec.yaml#newcode11 pkg/http_multi_server/pubspec.yaml:11: sdk: ">=1.6.0-dev.6.0 <2.0.0" ...
6 years, 3 months ago (2014-09-23 21:03:57 UTC) #15
nweiz
https://codereview.chromium.org/598453003/diff/80001/pkg/http_multi_server/pubspec.yaml File pkg/http_multi_server/pubspec.yaml (right): https://codereview.chromium.org/598453003/diff/80001/pkg/http_multi_server/pubspec.yaml#newcode11 pkg/http_multi_server/pubspec.yaml:11: sdk: ">=1.6.0-dev.6.0 <2.0.0" On 2014/09/23 21:03:57, kevmoo wrote: > ...
6 years, 3 months ago (2014-09-23 21:10:33 UTC) #16
Anders Johnsen
6 years, 3 months ago (2014-09-24 09:33:13 UTC) #17
Message was sent while issue was closed.
That this was on before, was quite undocumented and for some advance users, very
surprising.

We have to realize the Dart is rarely the front-facing server in a setup, but is
often used behind some kind of reverse proxy. In such setups, using CPU on gzip
is quite wasteful and gives little gain.

Dart comes with batteries included, and I think it's cool we have this built in
to the HTTP stack, but we should not have surprising features enabled by
default.

I've added a line in the release notes about this.

https://codereview.chromium.org/598453003/diff/80001/pkg/http_multi_server/te...
File pkg/http_multi_server/test/http_multi_server_test.dart (right):

https://codereview.chromium.org/598453003/diff/80001/pkg/http_multi_server/te...
pkg/http_multi_server/test/http_multi_server_test.dart:62: );
On 2014/09/23 19:34:46, nweiz wrote:
> Nit: "});"

Done.

https://codereview.chromium.org/598453003/diff/80001/pkg/http_multi_server/te...
pkg/http_multi_server/test/http_multi_server_test.dart:63: test("autoCompress=
sets the value for all servers", () {
On 2014/09/23 19:34:46, nweiz wrote:
> Nit: empty line between tests.

Done.

Powered by Google App Engine
This is Rietveld 408576698