Skip to content

Commit

Permalink
Lowered default "max_body_size" to 64 KB
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinson committed Jan 14, 2015
1 parent 699c1f4 commit 3a7ef46
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/nodejs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ connection strings:
};
},
match_hostname: false,
max_body_size: 1048576, //- 1024 * 1024 = 1 MB
max_body_size: 65536, //- 64 * 1024 = 64 KB
max_http_sockets: 500,
persistent_storage: {
avar_ttl: 86400, //- expire avars after 24 hours
Expand Down
2 changes: 1 addition & 1 deletion docs/ruby.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ connection strings:
enable_cors: false,
enable_web_server: false,
hostname: '0.0.0.0',
max_body_size: 1048576, # 1024 * 1024 = 1 MB
max_body_size: 65536, # 64 * 1024 = 64 KB
persistent_storage: {
# mongo: 'mongodb://localhost:27017/test'
},
Expand Down
2 changes: 1 addition & 1 deletion src/browser-client
Submodule browser-client updated 1 files
+4 −3 qmachine.js
2 changes: 1 addition & 1 deletion src/npm-module
Submodule npm-module updated 1 files
+2 −2 lib/service.js
2 changes: 1 addition & 1 deletion src/ruby-gem
Submodule ruby-gem updated 1 files
+2 −2 lib/service.rb
4 changes: 2 additions & 2 deletions tests/api-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// not test the performance of the implementation under load.
//
// ~~ (c) SRW, 10 Jan 2015
// ~~ last updated 12 Jan 2015
// ~~ last updated 14 Jan 2015

(function () {
'use strict';
Expand Down Expand Up @@ -630,7 +630,7 @@

var i, n, temp, x1, x2;

n = 1024 * 1024; // to create a body > 1 MB in length
n = 64 * 1024; // to create a body >= the default "max_body_size"

temp = '';

Expand Down

0 comments on commit 3a7ef46

Please sign in to comment.