bayserver-docker-ajp 3.0.1 → 3.0.2

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
  SHA256:
3
- metadata.gz: 7df5ce7f67a2fcb3e8770ce16cda000af020198e3c770e31a3e2326e28b9b329
4
- data.tar.gz: 58ddac3c3778a0a9af99cd1edef6da132d72090a375270310c7ff4529fe09b31
3
+ metadata.gz: 564d56705d1068e59c2790492950cf89e938642e59d2385aa90e326ca3759f6a
4
+ data.tar.gz: 34e31f99270772e8f7702f784838b3b620ceceb449e90b773cf8bc98bcccb9c8
5
5
  SHA512:
6
- metadata.gz: 4120cbf503b8f3b6f9db1a3ca5f7b2e08b6aa613d9cbc651237b5537cb9923c7fa024129007c6b09edd56e3a900adf86fcad9026b9969fb368ae761867463c1b
7
- data.tar.gz: 6064fc0a8760a4580d126856ff46e38c664f3ff8bcbab770cc2893d96143829b63118d39be6439f4c427d3d16f2c51c24b57f4f877970d77614577da6aa4069a
6
+ metadata.gz: bd579e6341dfb1428b524c92c5e1d8ad8cf0f886adbc0012e094a66e1d8601c5718c74c26ac010fd72bd53acdc89c248aedbcc8ca7961a727e83e7f307ecb6d9
7
+ data.tar.gz: cddc836d012162123c6d6bc41c79c01097e7eb188e586827f272e93a8e084c610e61de482dfef4618af7ffe607393168ac1c71cf5ad15d7d71f6d460bb897a19
@@ -110,7 +110,7 @@ module Baykit
110
110
  end
111
111
 
112
112
  def handle_end_response(cmd)
113
- BayLog.debug("%s handle_end_response reuse=%s st=%d", ship, cmd.reuse, @state)
113
+ BayLog.debug("%s handle_end_response reuse=%s st=%d", self, cmd.reuse, @state)
114
114
  tur = ship.get_tour(FIXED_WARP_ID)
115
115
 
116
116
  if @state == STATE_READ_HEADER
@@ -121,6 +121,9 @@ module Baykit
121
121
  if cmd.reuse
122
122
  return NextSocketAction::CONTINUE
123
123
  else
124
+ # Ensure the callback is not invoked when the connection is disconnected, and this instance becomes invalid.
125
+ tur.res.detach_consume_listener
126
+
124
127
  return NextSocketAction::CLOSE
125
128
  end
126
129
 
@@ -131,15 +134,16 @@ module Baykit
131
134
  end
132
135
 
133
136
  def handle_send_body_chunk(cmd)
134
- BayLog.debug("%s handle_send_body_chunk: len=%d st=%d", ship, cmd.length, @state)
135
- tur = ship.get_tour(FIXED_WARP_ID)
137
+ BayLog.debug("%s handle_send_body_chunk: len=%d st=%d", self, cmd.length, @state)
138
+ wsip = ship
139
+ tur = wsip.get_tour(FIXED_WARP_ID)
136
140
 
137
141
  if @state == STATE_READ_HEADER
138
142
 
139
- sid = ship.ship_id
143
+ sid = wsip.ship_id
140
144
  tur.res.set_consume_listener do |len, resume|
141
145
  if resume
142
- ship.resume_read(sid)
146
+ wsip.resume_read(sid)
143
147
  end
144
148
  end
145
149
 
@@ -157,7 +161,7 @@ module Baykit
157
161
  end
158
162
 
159
163
  def handle_send_headers(cmd)
160
- BayLog.debug("%s handle_send_headers", ship)
164
+ BayLog.debug("%s handle_send_headers", self)
161
165
 
162
166
  tur = ship.get_tour(FIXED_WARP_ID)
163
167
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bayserver-docker-ajp
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michisuke-P
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-15 00:00:00.000000000 Z
11
+ date: 2024-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bayserver-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.1
19
+ version: 3.0.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.0.1
26
+ version: 3.0.2
27
27
  description: BayServer is one of the high-speed web servers. It operates as a single-threaded,
28
28
  asynchronous server, which makes it exceptionally fast. It also supports multi-core
29
29
  processors, harnessing the full potential of the CPU's capabilities.