grenache-ruby-http 0.2.14 → 0.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5c91380df70d50708b75e5a2102f91d9957c2ae
4
- data.tar.gz: ee40182ec8e4c769fc464c335b957dfe401615b4
3
+ metadata.gz: 3cd8c925133c895fa843bb51c85fbd92aec07527
4
+ data.tar.gz: 6abd334e8882c1a686ce942e09fde504e83fccd5
5
5
  SHA512:
6
- metadata.gz: da78ab957ff99403f050f8a44f518bc4ad1cea3aec3c4e2311afea76c4f0067c5d7d643799a3cdd9d38df74fb786c8e72fc5c03b828ced58994ee4b3e9c01168
7
- data.tar.gz: cda44e7f144c859a99accf1e1df83fb31c3f6fe97acc60f23dabba94371d81f62897384aa3531818ebbdb55e2885674f4a3e51a4903960387fc2c97c08496bdc
6
+ metadata.gz: fa79489f3d4d6c7b80eba548fb1dbc988d27848aa64d443fa9a8d485f3d231c79264d67da23d1a8171daf43648fec30cac2808d7fcadf2590d844f53311f62f8
7
+ data.tar.gz: 77484cb5e23d58da1a1d7fb76952a83ebda1a6f5834101bc4160f5d22777dacc111158e463637a0711c15b6244a810f78d9948615c460ee7b92f9d147582f6a2
@@ -1,5 +1,5 @@
1
1
  module Grenache
2
2
  module HTTP
3
- VERSION = "0.2.14"
3
+ VERSION = "0.2.15"
4
4
  end
5
5
  end
data/lib/grenache/http.rb CHANGED
@@ -5,6 +5,10 @@ module Grenache
5
5
  conf.thin_threaded = true
6
6
  conf.threadpool_size = 10
7
7
  conf.verify_mode = Grenache::SSL_VERIFY_PEER
8
+ conf.thin_timeout = 30
9
+ conf.thin_max_conns = 1024
10
+ conf.thin_max_persistent_conns = 512
11
+ conf.thin_no_epoll = false
8
12
  end
9
13
 
10
14
  def listen(key, port, opts={}, &block)
@@ -31,6 +35,12 @@ module Grenache
31
35
  server.threadpool_size = config.thin_threadpool_size
32
36
  end
33
37
 
38
+ # Configure thin
39
+ server.timeout = config.thin_timeout
40
+ server.maximum_connections = config.thin_max_conns
41
+ server.maximum_persistent_connections = config.thin_max_persistent_conns
42
+ server.no_epoll = config.thin_no_epoll
43
+
34
44
  if tls?
35
45
  server.ssl = true
36
46
  server.ssl_options = {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grenache-ruby-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bitfinex <info@bitfinex.com>
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-07 00:00:00.000000000 Z
11
+ date: 2017-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine