bayserver-docker-ajp 3.0.0 → 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: 30ab4e8d79a5923f9ea6966dfe181914b91b84689fd882fdee087410ac2dff49
4
- data.tar.gz: a12f0f026ff69ee6cc30b7e87375d1fa920f53f304c9f62e4b6336025c4cb8f2
3
+ metadata.gz: 564d56705d1068e59c2790492950cf89e938642e59d2385aa90e326ca3759f6a
4
+ data.tar.gz: 34e31f99270772e8f7702f784838b3b620ceceb449e90b773cf8bc98bcccb9c8
5
5
  SHA512:
6
- metadata.gz: d8974095d7f61f7fb5a37e5fb79ec8f09fd2943e50de38abe0408ead09ab32dcadc3dd07275d3bc5d541a56b4d76726aaba93bedce0dc7fa9a94bafa9b8aceb0
7
- data.tar.gz: aa0e3db7f26a6885da95615c1a8c4f8ec07fd301ced14f81db6b31ad5153b6dbdf99754fcdbff90531ede059f199fb48a2eb2823caea03d3a26a4481487edbd4
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.0
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.0
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.0
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.