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: 22cb691c39435cefe6e1965e1e54ba32add67aab655e9e4a69f153e0fcfb7cfe
4
- data.tar.gz: 61217a6aa6fa45b98fe17712d250d8b7a74dcb90938d79789f8bcf8b28ab9b62
3
+ metadata.gz: 9f89b04b0b6d033c663b31d00f29d1f7da12ea1b5606c97f46b3f003006cf7ed
4
+ data.tar.gz: e334134e152cd70770f73b24fdf528e23d2eddfb965eed8a804ee9ff29439614
5
5
  SHA512:
6
- metadata.gz: 8ed3644dd7fc8acdf4320701599526c363be482228385a37ec61b2cc0b4da35fc1a2675b3ae04f70497533431d69ceb51a80500cd15bf514b19295d348309eed
7
- data.tar.gz: acf4299f67570cfb0428874bd5127af7ea8dd6bd165ab24067c0f00333785e3895e6e2feb556ec52de02e27795503d75c0f1a41ddf003fc0897de5a8a33eedb7
6
+ metadata.gz: a0a9a8d25137c3bd1453334cdc047e9e3ad21b553022390d8dbc162c8736f292345b447ae41f6f4356a2d2bc4b275fbf0c4bf4c32bf17df90a98d7b6b39af52c
7
+ data.tar.gz: a84330945c168611efd920facbc7ca4aac58e4c734a25feef82b4732d774b60d63375fe8c879a59a77884ad3c52f2f5c54d19863d908a47156bdc447c9a7a030
@@ -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
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Tanker
4
4
  class Core
5
- VERSION = '4.2.1.alpha.4'
5
+ VERSION = '4.2.1.alpha.7'
6
6
 
7
7
  def self.native_version
8
8
  CTanker.tanker_version_string
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
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-14 00:00:00.000000000 Z
11
+ date: 2024-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday