Skip to content

SwiftNIO 2.17.0

Compare
Choose a tag to compare
@Lukasa Lukasa released this 12 May 13:54
c5fa0b4

Semver Minor

  • Added a new BSDSocket namespace, containing BSDSocket.OptionLevel and BSDSocket.Option for use when configuring socket options. (#1461, #1467, #1470, #1510) (Patch credit to @compnerd)
  • Added BSDSocket.ProtocolFamily and BSDSocket.AddressFamily to replace the libc spelling for socket address families. (#1468, #1469) (Patch credit to @compnerd)
  • Added ECN metadata to AddressedEnvelope. This functionality is currently unused, but will be enabled in a future release. (#1502)
  • Added ByteBuffer.writeRepeatingByte method to provide a fast memset-like operation. (#1500)
  • Added EventLoop.preconditionNotInEventLoop and EventLoop.assertNotInEventLoop to match existing EventLoop.preconditionInEventLoop and EventLoop.assertInEventLoop. (#1508) (Patch credit to @gwynne)
  • Added MultithreadedEventLoopGroup.withCurrentThreadAsEventLoop to support taking over an existing thread and turning it into a NIO event loop. This allows NIO programs to now be single-threaded. (#1499)
  • Added EventLoop.flatScheduleTask to provide a cleaner way to support a scheduled task that returns a future. (#1497) (Patch credit to @gwynne)

Semver Patch

  • Fixed an error in the UDP echo client example where the socket would not be closed after receiving the response. (#1501)
  • Cleaned up uniqueness checking in NIOHTTP1. (#1507) (Patch credit to @shekhar-rajak)
  • New UDP allocation tests. (#1496)
  • Improved allocation counter tests. (#1476)
  • Improved allocation diffing script. (#1513)
  • Removed warnings. (#1481, #1493)
  • Documentation improvements. (#1474, #1482, #1483, #1505)
  • Added Swift 5.3 CI. (#1498)