mizuno 0.6.10 → 0.6.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mizuno/server.rb +6 -3
- data/lib/mizuno/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e3f866d360e5713f891f006592a9d95cb37125a
|
4
|
+
data.tar.gz: e403a630c9ae3451480fb3434130f9d025ff84d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13314fd9eed407abe4b8d6b536227a00053d6151c7ecd3eb4c1ea04eb1437fc08f8cdca108707d263ee0841289ab8f843404a74115e011199932eb6837698cbf
|
7
|
+
data.tar.gz: 90457f53d053dffe25e003fe26adfc944645ab53ecde4630d678e203eb6cad2418ad5d7dd279fd3206df3aa1b7d4bb29c305dcc9d9732c222fa42d3962dd263e
|
data/lib/mizuno/server.rb
CHANGED
@@ -72,16 +72,19 @@ module Mizuno
|
|
72
72
|
# Thread pool
|
73
73
|
threads = options[:threads] || 50
|
74
74
|
thread_pool = QueuedThreadPool.new
|
75
|
-
thread_pool.min_threads = options.fetch(:min_threads,
|
75
|
+
thread_pool.min_threads = options.fetch(:min_threads,
|
76
|
+
[ threads.to_i / 10, 5 ].max)
|
76
77
|
thread_pool.max_threads = [ threads.to_i, 10 ].max
|
77
78
|
@server.set_thread_pool(thread_pool)
|
78
79
|
|
79
80
|
# Connector
|
80
81
|
connector = SelectChannelConnector.new
|
81
|
-
|
82
|
-
connector.setReuseAddress(options.fetch(:reuse_address, false)) rescue nil
|
82
|
+
connector.setReuseAddress(options.fetch(:reuse_address, false))
|
83
83
|
connector.setPort(options[:port].to_i)
|
84
84
|
connector.setHost(options[:host])
|
85
|
+
max_header_size = options.fetch(:max_header_size, 32768)
|
86
|
+
connector.setRequestHeaderSize(max_header_size)
|
87
|
+
|
85
88
|
@server.addConnector(connector)
|
86
89
|
|
87
90
|
# SSL Connector
|
data/lib/mizuno/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mizuno
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Don Werve
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|