tanker-core 4.2.1.alpha.4 → 4.2.1.alpha.7
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f89b04b0b6d033c663b31d00f29d1f7da12ea1b5606c97f46b3f003006cf7ed
|
4
|
+
data.tar.gz: e334134e152cd70770f73b24fdf528e23d2eddfb965eed8a804ee9ff29439614
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0a9a8d25137c3bd1453334cdc047e9e3ad21b553022390d8dbc162c8736f292345b447ae41f6f4356a2d2bc4b275fbf0c4bf4c32bf17df90a98d7b6b39af52c
|
7
|
+
data.tar.gz: a84330945c168611efd920facbc7ca4aac58e4c734a25feef82b4732d774b60d63375fe8c879a59a77884ad3c52f2f5c54d19863d908a47156bdc447c9a7a030
|
data/lib/tanker/core/http.rb
CHANGED
@@ -85,6 +85,7 @@ module Tanker
|
|
85
85
|
@queue = nil
|
86
86
|
|
87
87
|
def self.init
|
88
|
+
puts "### PID=#{Process.pid} TANKER-CORE HTTP THREADPOOL INIT"
|
88
89
|
# Queue is a concurrent queue in Ruby
|
89
90
|
@queue = Queue.new
|
90
91
|
@http_thread_pool = THREAD_POOL_SIZE.times do
|
@@ -95,6 +96,7 @@ module Tanker
|
|
95
96
|
end
|
96
97
|
|
97
98
|
def self.thread_loop
|
99
|
+
puts "### PID=#{Process.pid} TANKER-CORE HTTP THREADPOOL WORKER LOOP STARTED"
|
98
100
|
loop do
|
99
101
|
work = @queue.pop
|
100
102
|
work.call
|
@@ -102,11 +104,13 @@ module Tanker
|
|
102
104
|
end
|
103
105
|
|
104
106
|
def self.push(proc)
|
107
|
+
puts "### PID=#{Process.pid} TANKER-CORE HTTP THREADPOOL PUSH"
|
105
108
|
init if @queue.nil?
|
106
109
|
@queue << proc
|
107
110
|
end
|
108
111
|
|
109
112
|
def self.before_fork
|
113
|
+
puts "### PID=#{Process.pid} TANKER-CORE HTTP THREADPOOL BEFORE FORK"
|
110
114
|
@http_thread_pool = nil
|
111
115
|
@queue = nil
|
112
116
|
end
|
@@ -179,6 +183,7 @@ module Tanker
|
|
179
183
|
end
|
180
184
|
|
181
185
|
def send_request(crequest, _cdata)
|
186
|
+
puts "### PID=#{Process.pid} TANKER-CORE HTTP SEND_REQUEST CALLED"
|
182
187
|
request = HttpRequest.new(crequest:)
|
183
188
|
ThreadPool.push(proc do
|
184
189
|
process_request request
|
data/lib/tanker/core/version.rb
CHANGED
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tanker-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.1.alpha.
|
4
|
+
version: 4.2.1.alpha.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tanker team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|