quic 0.0.3 → 0.0.5

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.
data/sig/quic.rbs CHANGED
@@ -323,15 +323,19 @@ module QUIC
323
323
  # Server) until the peer's flow control window has room for the full
324
324
  # payload, then queues all bytes and returns data.bytesize. Requires the
325
325
  # owning connection to be bound to a socket via #bind; raises
326
- # QUIC::Error::NotBound otherwise.
326
+ # QUIC::Error::NotBound otherwise. Raises QUIC::Error::StreamClosed,
327
+ # while waiting too, once the stream has been reset or closed, or the
328
+ # peer has sent STOP_SENDING. STOP_SENDING also drops what was queued
329
+ # but not yet sent.
327
330
  def write: (String data, ?fin: bool) -> Integer
328
331
 
329
332
  # Non-blocking variant. Queues as much of `data` as the current flow
330
333
  # control window allows and returns the byte count actually queued.
331
334
  # Raises QUIC::Error::WaitWritable (mixed in with IO::WaitWritable) when
332
- # the window is zero and the payload is non-empty. If only a partial
333
- # prefix is accepted, `fin: true` is NOT propagated; the caller must
334
- # re-issue with `fin: true` on the trailing chunk.
335
+ # the window is zero and the payload is non-empty, and
336
+ # QUIC::Error::StreamClosed as #write does. If only a partial prefix is
337
+ # accepted, `fin: true` is NOT propagated; the caller must re-issue with
338
+ # `fin: true` on the trailing chunk.
335
339
  def write_nonblock: (String data, ?fin: bool) -> Integer
336
340
  def eof?: () -> bool
337
341
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yusuke Nakamura
@@ -36,14 +36,18 @@ extensions:
36
36
  - ext/quic/extconf.rb
37
37
  extra_rdoc_files: []
38
38
  files:
39
+ - ".clang-format"
40
+ - ".git-blame-ignore-revs"
39
41
  - CHANGELOG.md
40
42
  - CODE_OF_CONDUCT.md
41
43
  - LICENSE-DEPENDENCIES.txt
42
44
  - LICENSE.txt
43
45
  - README.md
44
46
  - Rakefile
47
+ - examples/demo_certificates.rb
45
48
  - examples/doq_demo.rb
46
49
  - examples/echo_demo.rb
50
+ - examples/echo_endpoint_demo.rb
47
51
  - examples/echo_server_demo.rb
48
52
  - examples/handshake_demo.rb
49
53
  - examples/io_loop_demo.rb