1
0
mirror of https://github.com/apple/swift-nio-extras.git synced 2025-05-17 18:59:47 +08:00

6 Commits

Author SHA1 Message Date
George Barnett
20c59b2d64
Strict concurrency for NIOExtras and NIOExtrasTests () 2025-03-31 11:53:06 +01:00
Rick Newton-Rogers
3f776e9aaf
Migrate CI to use GitHub Actions. ()
### Motivation:

To migrate to GitHub actions and centralised infrastructure.

### Modifications:

Changes of note:
* Adopt swift-format using rules from SwiftNIO
* Remove scripts and docker files which are no longer needed

### Result:

Feature parity with old CI.
2024-10-28 14:00:57 +00:00
Peter Adams
da7c04777b
Docnioextras ()
* Improve documentation for NIOExtras

Motivation:

Docs will help users do things correctly.

Modifications:

Add missing comments, improve links.

Result:

Better docc documentation

* Docc in NIOHTTPCompression

* NIOSOCKS docc

* Correct bad symbol

* Minor typo

Co-authored-by: Cory Benfield <lukasa@apple.com>
2022-08-03 01:34:45 -07:00
Cory Benfield
d66ae0557e
Clean up imports and dependencies. ()
Motivation:

With NIO 2.32.0 we broke the core NIO module up into modules that split
apart the POSIX layer and the core abstractions. As a result, this
package no longer needs to express a hard dependency on the POSIX layer.

Modifications:

- Rewrote imports of NIO to NIOCore.
- Added NIOEmbedded and NIOPosix imports where necessary in tests.
- Extended soundness script to detect NIO imports.
- Note that the main modules still depend on NIO, which is necessary
    for backwards-compatibility reasons. This dependency is unused.

Result:

No need to use NIOPosix.
2021-09-14 16:30:39 +01:00
George Barnett
a8e195bdf8
Fail outstanding promises in channelInactive in the RequestResponseHandler ()
Motivation:

It's possible for channels to be closed without an error; and the
`RequestResponseHandler` should tolerate that by failing any promises
for which it does not have a response for.

Modifications:

- Add `ClosedBeforeReceivingResponseError`
- Fail outstanding promises with `ClosedBeforeReceivingResponseError` in
  `RequestResponseHandler.channelInactive`
- Add a test.

Result:

Outstanding request promises are failed when the channel becomes inactive.
2020-08-24 07:35:13 +01:00
Franz Busch
10e173cbed FixedLengthFrameDecoder ()
Provide a decoder for frames with a fixed length.

Motivation:

This was motivated by the issue https://github.com/apple/swift-nio/issues/474 as a good first issue.

Modifications:

Implemented a FixedLengthFrameDecoder as well as tests.

Result:

Users can decode fixed length frames.
2018-07-17 16:12:26 +01:00