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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d7783c87883c9c45dd3d05a11b2060fea115b7a1b5a2435bcb3ebe3a2f0bb06
4
- data.tar.gz: 235ff150ef9cf4966538b2899a2471df665544606d8599345f62f863772d6632
3
+ metadata.gz: 57888805cdcf6fd48de1750317bdaff0252e1b912109ac138ab16e781152efba
4
+ data.tar.gz: b1f8814861de4ef764495a9a7ef5d43aa954ab01248c3e905b32bceec081f068
5
5
  SHA512:
6
- metadata.gz: af3056573867c1b572c48a713c28a07cfa7d33d363d1a5c94ef555faee4dfae35e8aeb482ed5d14cd70c11cdcf5bc78d6a5e1296c9f3b61eb4ad958f674b3166
7
- data.tar.gz: 97bf7592db90bc2df78b28e39f04ea14d53ea725443e56693c3f5daf5661e2b8ce018b6e2fb5692991619a0d5dc0fc676f291131e3291931c23f1b02c71d2b55
6
+ metadata.gz: 0c564e40838c62f1918c1c95317638088e96b54aacf7aa3d0282fcb8046795a320a428e332fab27805fdccefbbd6f096090f7351bdf5143c1fd0a5618ebed753
7
+ data.tar.gz: 1129bb1a6e58dc3dd0b4aff3572377871cc0ba98ae553330cc5211032d08c5b5d777f8392e45885ae95d4ebafe1fb1a9b13c4c74027f048eb72a21a15fa681c2
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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
- error.reopen(File::NULL)
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
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module HTTY
8
- VERSION = "0.3.0"
8
+ VERSION = "0.4.0"
9
9
  end
10
10
  end
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-htty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file