diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2022-11-17 14:50:25 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-17 14:50:25 -0800 |
commit | ea8a7287e2b96b9c24e5e89fe863e5bfa60bfdda (patch) | |
tree | 1935b65502eb16b6913d6183fc11c6f1cf4db34d /NEWS.md | |
parent | 4e4b29b1a9e534554594b6f18fc0bdc462638934 (diff) | |
download | ruby-ea8a7287e2b96b9c24e5e89fe863e5bfa60bfdda.tar.gz |
Add support for `sockaddr_un` on Windows. (#6513)
* Windows: Fix warning about undefined if_indextoname()
* Windows: Fix UNIXSocket on MINGW and make .pair more reliable
* Windows: Use nonblock=true for read tests with scheduler
* Windows: Move socket detection from File.socket? to File.stat
Add S_IFSOCK to Windows and interpret reparse points accordingly.
Enable tests that work now.
* Windows: Use wide-char functions to UNIXSocket
This fixes behaviour with non-ASCII characters.
It also fixes deletion of temporary UNIXSocket.pair files.
* Windows: Add UNIXSocket tests for specifics of Windows impl.
* Windows: fix VC build due to missing _snwprintf
Avoid usage of _snwprintf, since it fails linking ruby.dll like so:
linking shared-library x64-vcruntime140-ruby320.dll
x64-vcruntime140-ruby320.def : error LNK2001: unresolved external symbol snwprintf
x64-vcruntime140-ruby320.def : error LNK2001: unresolved external symbol vsnwprintf_l
whereas linking miniruby.exe succeeds.
This patch uses snprintf on the UTF-8 string instead.
Also remove branch GetWindowsDirectoryW, since it doesn't work.
* Windows: Fix dangling symlink test failures
Co-authored-by: Lars Kanis <kanis@comcard.de>
Diffstat (limited to 'NEWS.md')
-rw-r--r-- | NEWS.md | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -103,7 +103,8 @@ Note that each entry is kept to a minimum, see links for details. Note: We're only listing outstanding class updates. * Fiber::Scheduler - * Introduce `Fiber::Scheduler#io_select` for non-blocking `IO.select`. [[Feature #19060]] + * Introduce `Fiber::Scheduler#io_select` for non-blocking `IO.select`. + [[Feature #19060]] * IO * Introduce `IO#timeout=` and `IO#timeout` which can cause @@ -115,6 +116,11 @@ Note: We're only listing outstanding class updates. STDIN.read # => Blocking operation timed out! (IO::TimeoutError) ``` +* UNIXSocket + * Add support for UNIXSocket on Windows. Emulate anonymous sockets. Add + support for `File.socket?` and `File::Stat#socket?` where possible. + [[Feature #19135]] + * Class * `Class#attached_object`, which returns the object for which the receiver is the singleton class. Raises `TypeError` if the @@ -417,3 +423,4 @@ The following deprecated APIs are removed. [Feature #19026]: https://bugs.ruby-lang.org/issues/19026 [Feature #19060]: https://bugs.ruby-lang.org/issues/19060 [Bug #19100]: https://bugs.ruby-lang.org/issues/19100 +[Feature #19135]: https://bugs.ruby-lang.org/issues/19135 |