thrift-amqp-ruby 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/thrift/amqp/amqp_rpc_client.rb +4 -0
- data/lib/thrift/amqp/ruby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcbda5528d24612bbca2bb2df8a30e6fa58137a0
|
4
|
+
data.tar.gz: e4cec75499c7a62f0c4d8587b3a6a26fe44727bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 772ce18537d895fb16b4ae9d0be6fb46791bbf695756cb3482b651d79816c8b34b7ba6d17018b6aec2d822645b184b797e444564ff66015be4d922c1148abc26
|
7
|
+
data.tar.gz: 05b94b083f71814d28dc254ebd6b81e58b7a584d9edb29e2e4130e236ea865cb832b6b3128f4696e4b684dbd36db17d3e07cd8477133b4c2e8581e8d6b42321a
|
@@ -146,10 +146,14 @@ module Thrift
|
|
146
146
|
if @response == ""
|
147
147
|
msg = "A timeout has occurred (#{msg_timeout}sec) trying to call #{@service_queue_name}.#{operation}"
|
148
148
|
print_log msg, correlation_id
|
149
|
+
@outbuf = Bytes.empty_byte_buffer
|
149
150
|
raise ex, msg
|
150
151
|
else
|
151
152
|
print_log "Ignoring timeout - #{@response}", correlation_id
|
152
153
|
end
|
154
|
+
rescue => e
|
155
|
+
@outbuf = Bytes.empty_byte_buffer
|
156
|
+
raise e
|
153
157
|
end
|
154
158
|
@inbuf = StringIO.new Bytes.force_binary_encoding(@response)
|
155
159
|
end
|