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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e051e5280d284dd6baac685ecc3cec3f5afd1e7
4
- data.tar.gz: ea6e490bfd66d5400321150b4e7967fbf2839d6d
3
+ metadata.gz: 5e3f866d360e5713f891f006592a9d95cb37125a
4
+ data.tar.gz: e403a630c9ae3451480fb3434130f9d025ff84d9
5
5
  SHA512:
6
- metadata.gz: 9261e2d5b8a8b9368fae8cc7fde5cd939c57669adaebeb76535861ad26c5a1529abeba12ea1c0f9c4fa8037a33623835cf4fcc04afcb8f93c18340f0d657da8f
7
- data.tar.gz: 9169b48b3c382cd4544a0e21a080d18e4b5f8f58949fb093e4abc14d1f04d0a32eeef77673e5e3f6a41c241282bbf89f7fac9e125e7f65d9eb6c1440d1fb50de
6
+ metadata.gz: 13314fd9eed407abe4b8d6b536227a00053d6151c7ecd3eb4c1ea04eb1437fc08f8cdca108707d263ee0841289ab8f843404a74115e011199932eb6837698cbf
7
+ data.tar.gz: 90457f53d053dffe25e003fe26adfc944645ab53ecde4630d678e203eb6cad2418ad5d7dd279fd3206df3aa1b7d4bb29c305dcc9d9732c222fa42d3962dd263e
@@ -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, [ threads.to_i / 10, 5 ].max)
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
- # system may not have SO_REUSEPORT options -> `rescue nil`
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
@@ -1,3 +1,3 @@
1
1
  module Mizuno
2
- VERSION = "0.6.10"
2
+ VERSION = "0.6.11"
3
3
  end
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.10
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-05-06 00:00:00.000000000 Z
11
+ date: 2015-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack