Johannes Weiss
Johannes Weiss
### Expected behavior When requesting impossible things (e.g. loading more than 2GB into a `ByteBuffer`), `NIOFileSystem` should raise an error and not crash. ### Actual behavior Crash ### Steps to...
NIOFileSystem allows loading files into a `ByteBuffer` which is great for most purposes but there are still APIs (like `Codable`) that natively only want `Data`s. So `NIOFileSytemFoundationCompat` should provide `Data(contentsOf:maximumSizeAllowed:)`.
NIOFileSystem allows `ByteBuffer(contentsOf:maximumSizeAllowed:)` which is great but occasionally a `Array` would be great too.
https://github.com/apple/swift-nio/blob/30df8551f4e636b8f68627dbc205221bcfc57782/Sources/NIOFileSystem/FileSystem.swift#L638 Currently, NIOFS's `temporaryDirectory` uses `_CS_DARWIN_USER_TEMP_DIR` on Darwin and `/tmp`/`/data/local/tmp` anywhere else. I think we should consider the env var `TMPDIR` if set. So maybe: - Darwin: `_CS_DARWIN_USER_TEMP_DIR` -> `TMPDIR`...
Right now, `ByteBuffer`'s `description` is ugly and not very useful (doesn't print the bytes). With #2856 being merged, I'm proposing to make `ByteBuffer`'s description the following: ``` [ hex bytes,...
If a user accidentally shuts down the ELG before actually being done, they often get ``` BUG in SwiftNIO (please report), unleakable promise leaked.:486: Fatal error: leaking promise created at...
For some reason, HTTPClient hides the configuration that was used to configure it from the user. We shouldn't do that.
``` warning: 'swift-algorithms': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target /Users/johannes/devel/my-project/.build/checkouts/swift-algorithms/Sources/Algorithms/Documentation.docc ```