fast_send 1.2.1 → 1.2.2
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 +4 -4
- data/lib/fast_send.rb +3 -2
- data/lib/fast_send/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c7011ae2ae2374cb07222d231ee1e34d53e04e0c96f71b11744edc879397129
|
4
|
+
data.tar.gz: e389d29b6d81fe7b5fb26bada7b5b522d1dc5e8eb5df44e391b887562cf35aed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75140d037ab4c456127dec963ea23d45025f8d563b5be1abbbf7c1da569476cf23f84019c930cbc3e7bc3663a9a4fe99bde8c6f4fab9b195bf00e54af63b3fb0
|
7
|
+
data.tar.gz: e62e12d0c327fa440825277f4f71fe69e2bd7ef63847dd0fe0746f7906e31cb2359b324a2b072ae716a2c7a263aab2b191ca23fc7f8dd54bbe76c199f61acf14
|
data/lib/fast_send.rb
CHANGED
@@ -31,8 +31,9 @@
|
|
31
31
|
# `fast_send.error' => ->(exception) { } # the response is not sent completely due to an error in the application
|
32
32
|
# `fast_send.cleanup' => ->(sent_total) { } # Called at the end of the response, in an ensure block
|
33
33
|
class FastSend
|
34
|
-
# All exceptions that get raised when the client closes a connection before receiving the entire response
|
35
|
-
|
34
|
+
# All exceptions that get raised when the client closes a connection before receiving the entire response.
|
35
|
+
# IOError can be raised when an IO times out in IO.select()
|
36
|
+
CLIENT_DISCONNECTS = [Errno::EPIPE, Errno::ECONNRESET, Errno::ENOTCONN, Errno::EPROTOTYPE, IOError]
|
36
37
|
|
37
38
|
if RUBY_PLATFORM =~ /java/
|
38
39
|
require 'java'
|
data/lib/fast_send/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fast_send
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julik Tarkhanov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|