async-htty 0.3.0 → 0.4.0
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
- checksums.yaml.gz.sig +0 -0
- data/lib/async/htty/server.rb +8 -2
- data/lib/async/htty/version.rb +1 -1
- data/readme.md +5 -0
- data/releases.md +5 -0
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 57888805cdcf6fd48de1750317bdaff0252e1b912109ac138ab16e781152efba
|
|
4
|
+
data.tar.gz: b1f8814861de4ef764495a9a7ef5d43aa954ab01248c3e905b32bceec081f068
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c564e40838c62f1918c1c95317638088e96b54aacf7aa3d0282fcb8046795a320a428e332fab27805fdccefbbd6f096090f7351bdf5143c1fd0a5618ebed753
|
|
7
|
+
data.tar.gz: 1129bb1a6e58dc3dd0b4aff3572377871cc0ba98ae553330cc5211032d08c5b5d777f8392e45885ae95d4ebafe1fb1a9b13c4c74027f048eb72a21a15fa681c2
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/async/htty/server.rb
CHANGED
|
@@ -48,7 +48,13 @@ module Async
|
|
|
48
48
|
stream = ::Protocol::HTTY::Stream.new(original_input, original_output)
|
|
49
49
|
input.reopen(File::NULL)
|
|
50
50
|
output.reopen(File::NULL)
|
|
51
|
-
|
|
51
|
+
|
|
52
|
+
# Redirect error output to a file if specified, otherwise discard it:
|
|
53
|
+
if error_log = ENV.fetch("HTTY_ERROR_LOG", nil)
|
|
54
|
+
error.reopen(File.open(error_log, "a"))
|
|
55
|
+
else
|
|
56
|
+
error.reopen(File::NULL)
|
|
57
|
+
end
|
|
52
58
|
|
|
53
59
|
Sync do |task|
|
|
54
60
|
with_raw_terminal(original_input) do
|
|
@@ -87,7 +93,7 @@ module Async
|
|
|
87
93
|
Array(task.children).each(&:wait)
|
|
88
94
|
ensure
|
|
89
95
|
if connection and !connection.closed?
|
|
90
|
-
connection.send_goaway
|
|
96
|
+
connection.send_goaway rescue nil
|
|
91
97
|
connection.close
|
|
92
98
|
end
|
|
93
99
|
end
|
data/lib/async/htty/version.rb
CHANGED
data/readme.md
CHANGED
|
@@ -14,6 +14,11 @@ Please see the [project documentation](https://socketry.github.io/async-htty/) f
|
|
|
14
14
|
|
|
15
15
|
Please see the [project releases](https://socketry.github.io/async-htty/releases/index) for all releases.
|
|
16
16
|
|
|
17
|
+
### v0.4.0
|
|
18
|
+
|
|
19
|
+
- Suppress errors from `send_goaway` during connection cleanup to prevent shutdown exceptions from propagating.
|
|
20
|
+
- Support redirecting server-side stderr to a file via the `HTTY_ERROR_LOG` environment variable, enabling debug logging without corrupting the HTTY byte stream.
|
|
21
|
+
|
|
17
22
|
### v0.3.0
|
|
18
23
|
|
|
19
24
|
- Pass explicit terminal input and output endpoints into `Protocol::HTTY::Stream`, avoiding buffered duplex reads across the HTTY HTTP/2 transport.
|
data/releases.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Releases
|
|
2
2
|
|
|
3
|
+
## v0.4.0
|
|
4
|
+
|
|
5
|
+
- Suppress errors from `send_goaway` during connection cleanup to prevent shutdown exceptions from propagating.
|
|
6
|
+
- Support redirecting server-side stderr to a file via the `HTTY_ERROR_LOG` environment variable, enabling debug logging without corrupting the HTTY byte stream.
|
|
7
|
+
|
|
3
8
|
## v0.3.0
|
|
4
9
|
|
|
5
10
|
- Pass explicit terminal input and output endpoints into `Protocol::HTTY::Stream`, avoiding buffered duplex reads across the HTTY HTTP/2 transport.
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|