junixsocket

Unix Domain Sockets in Java 7 and newer (AF_UNIX), AF_TIPC, AF_VSOCK, and more

APACHE-2.0 License

Stars
434

Bot releases are visible (Hide)

junixsocket - junixsocket 2.10.0 Latest Release

Published by kohlschuetter 3 months ago

  • Fix compatibility with Java 7
  • Fix error handling for non-blocking operations on Windows
  • Fix interoperability of junixsocket-mysql and GraalVM native-image
  • Fix socket-closed state upon exceptions indicating a closed socket descriptor
  • Fix exceptions for channels: Throw ClosedChannelException instead of SocketClosedException, etc.
  • Fix a flaky selftest when VSOCK is not supported
  • Improve compatibility and performance with Virtual Threads in Java 21 or newer (JEP 444)
  • Improve interopability with Java 15 UnixDomainSocketAddress and StandardProtocolFamily.UNIX
  • Improve selftest stability and logging, more tests
  • Add support for ServerSocketChannel.bind(null) for AF_UNIX socket addresses.
  • Add more tests for mysql interoperability, optionally include mysql tests in selftest
  • Add NotConnectedSocketException, NotBoundSocketException
  • Building now requires Java 21, Maven 3.8.8 or newer
  • Update build-time dependencies
  • Code cleanup
junixsocket - junixsocket 2.9.1

Published by kohlschuetter 7 months ago

  • Fix ignored timeouts for Mysql-specific AFUNIXDatabaseSocketFactoryCJ
  • Fix GraalVM configuration, support AFUNIXSocketFactory for native-image
  • Fix compatibility with jetty 12.0.7
  • Fix unnecessary failures in some tests, error handling in selftest
  • Improve SocketException handling (throw SocketClosedException subclass upon accept error)
  • Make native library code compile on Minix
  • Add availability check of abstract namespace on emulated Linux environments (BSD)
  • Add junixsocket-demo-jpackagejlink artifact to show how to use jpackage/jlink with junixsocket
  • Update crossclang scripts, fix compatibility with Xcode 15.3
  • Code cleanup
junixsocket - junixsocket 2.9.0

Published by kohlschuetter 8 months ago

  • Add generic socket fallback for FileDescriptors received from other processes
  • Add "dup"/"dup2" support via FileDescriptorCast.duplicating
  • Add listen/accept support to AFDatagramSocket, so we can serve SEQPACKETs
  • Add more SocketException subclasses (such as BrokenPipe-/ConnectionResetSocketException)
  • Add support to make shutdown-upon-close configurable
  • Add support for undocumented "ECLOSED" (errno 3417) condition on IBM i PASE
  • Add test for the "close-during-accept" condition
  • Fix native library loading for AIX/IBM i on Java 15 and newer
  • Fix blocking state when using FileDescriptorCast
  • Fix module-info.java: Don't mark requirements transient (annotations, mysql connector)
  • Fix TIPC tests on some old environments (which didn't time out)
  • Fix compilation for z/OS 32-bit
  • Fix AFServerSocketChannel.getLocalAddress to return AFSocketAddress subclass
  • Fix unnecessary failures in some tests, error handling in selftest
  • Fix "force override" path parsing for native library on Windows
  • Update build/plugin/test/demo dependencies
  • Update crossclang scripts; no longer requires root to install Xcode components
  • Improve error handling on broken Java VMs (e.g., IBM Semeru 8.0.7 and older)
  • Improve demo code, use slf4j-simple for logging
  • Code cleanup

Backwards-incompatible change: Some AFSocket classes are now final or no longer declare constructor exceptions.

junixsocket - junixsocket 2.8.3

Published by kohlschuetter 11 months ago

  • Fix concurrency issue with AFSocketServerConnector, AFSelectionKey; take two
  • Fix regression introduced in 2.8.2 that leaked FileDescriptors
  • Reduce allocation overhead during select
junixsocket - junixsocket 2.8.2

Published by kohlschuetter 12 months ago

Fix concurrency issue with AFSocketServerConnector, AFSelectionKey

junixsocket - junixsocket 2.8.1

Published by kohlschuetter about 1 year ago

  • Fix UnsatisfiedLinkError with noexec temporary directory on RHEL 9 and others
junixsocket - junixsocket 2.8.0

Published by kohlschuetter about 1 year ago

  • Java 7 support is back! (junixsocket-common only, as it was before version 2.5.0)
  • Fix AFSocket shutdown to ignore InvalidSocketException upon setTimeout
  • Fix two potential hangs in selftest
  • Fix loading of the native library when running under macOS Rosetta 2
  • Fix a potential exception when trying to serialize an AFRMISocketFactory
  • Fix a potential race condition when working with native addresses
  • Fix a potential crash in TIPC code when compiling the native library against an old Linux SDK
  • Improve AFSocketServer, add new methods
  • Improve crossclang to support Xcode 15
  • Enable RMI support for GraalVM native-image; selftest now passes without issues
  • Add junixsocket-ssl, to simplify securing junixsocket connections
  • Requires Java 17 to build (and JDK 8 if Java 7 support is desired); build instructions have changed
junixsocket - junixsocket 2.7.2

Published by kohlschuetter about 1 year ago

  • Fix SelectionKey logic (regression introduced in 2.7.1)
  • Fix selftest-android dependency (some tests would always fail)
  • Improve AFSocketAddress creation, skip DNS resolution on Android
  • Add demo code for interacting with Apache Mina and Netty
  • Code cleanup
junixsocket - junixsocket 2.7.1

Published by kohlschuetter about 1 year ago

  • Fix openDatagramChannelPair (was using STREAM instead of DGRAM), add AFSocketType support
  • Fix availability of AF_SYSTEM capability on Darwin
  • Improve exception handling for "EPROTOTYPE" error on z/OS
  • Improve SelectionKey logic, reduce locking/GC overhead
  • Improve "unsupported operation" handling in native code
  • Improve handling of "test aborted, but not really an issue"
  • Add unit tests for Jetty 12
  • Code cleanup, update dependencies
junixsocket - junixsocket 2.7.0

Published by kohlschuetter about 1 year ago

Users of junixsocket are strongly advised to upgrade to this version

  • New supported platform (out of the box): Android (aarch64, arm-linux-androideabi, x86_64, i686)
  • New platforms that can be used when building the native library from source: Haiku, IBM z/TPF
  • Add selftest GUI app for Android (“junixsocket-selftest-android”)
  • Add ability to get native file descriptor number via FileDescriptorCast
  • Add AFSocketCapability for “large port numbers” (larger than 65535)
  • Add support to convert UnixDomainSocketAddress to AFUNIXSocketAddress (Java 16+)
  • Add support for AF_SYSTEM (macOS), which allows creating your own VPN via utun, for example.
  • Add initial support for SOCK_SEQPACKET/SOCK_RDM/SOCK_RAW
  • Fix potential data corruption when sending non-direct ByteBuffers larger than 8192 bytes
  • Fix potential data corruption when receiving non-direct ByteBuffers with non-zero position
  • Fix intermittent hangs when sending datagrams on macOS, BSD
  • Fix “org.eclipse.jdt.annotation” JPMS module: no longer required at runtime
  • Fix Exception messages from native code being empty in some Linux environments
  • Fix selftest failing for vsock in some Linux environments
  • Improve JNI library lookup; load from user.home/user.dir if tmpfs is mounted with noexec
  • Improve concurrency performance for RMI over Unix domain sockets
  • Improve reliability on exotic environments
  • Update dependencies, improve tests, selftest, build scripts
  • Require Java 16 to build (still supports running on Java 8 and newer)
  • Last but not least: junixsocket finally has a logo!
junixsocket - junixsocket 2.6.2

Published by kohlschuetter over 1 year ago

  • Add socket connectors for AF_VSOCK, Firecracker
  • Add mayStopServerForce to AFSocketServerConnector
  • Fix false-positive selftest failure on slow machines
  • Fix potential hang in send
  • Fix support for TIPC/VSOCK when building GraalVM native images
  • Fix serialization of AFSocketAddresses
  • Update dependencies, especially use the new mysql.connector.j
junixsocket - junixsocket 2.6.1

Published by kohlschuetter almost 2 years ago

  • Add AFSocket.checkConnectionClosed to probe connection status
  • Fix connection status checks and error handling
  • Fix bind behavior on Windows, support re-bind with reuseAddress
  • Fix and improve unit tests/selftests, remove several false-positive errors found in the wild (Azure Cloudshell/Microsoft CBL-Mariner 2.0, Amazon EC2, OpenBSD, etc.)
  • Fix SimpleTestServer demo, actually counting now to 5, not 6.
  • Make builds reproducible, align timestamps with git commit

NOTE: If you're seeing unexpected errors in selftest, please verify with the attached junixsocket-selftest-2.6.1-hotpatch-jar-with-dependencies.jar. There may be false-positive socket timeout issues on very slow machines (e.g., qemu s390).

junixsocket - junixsocket 2.6.0

Published by kohlschuetter about 2 years ago

  • Add support for GraalVM native-image
  • Add support for native-image selftest
  • Add support for AF_VSOCK (on Linux, and some macOS VMs)
  • Reintroduce deprecated legacy constructors for AFUNIXSocketAddress that were removed in 2.5.0.
  • Parent POM has been renamed from junixsocket-parent to junixsocket
junixsocket - junixsocket 2.5.2

Published by kohlschuetter about 2 years ago

  • Fix address handling in the Abstract Namespace
  • Fix support for very large datagrams (> 1MB)
  • Fix InetAddress-wrapping of long addresses
  • Update Xcode support script, crossclang
  • Bump postgresql version in demo code
  • Fix dependency for custom architecture artifact
junixsocket - junixsocket 2.5.1

Published by kohlschuetter over 2 years ago

  • Add support for IBM z/OS (experimental, binary not included)
  • Add support for building from source on arm64-Linux
  • Add junixsocket support for jetty via junixsocket-jetty
  • Fix Selector logic (more bug fixes)
  • Documentation updates
junixsocket - junixsocket 2.5.0

Published by kohlschuetter over 2 years ago

  • New supported platforms: AIX 7 Power64, IBM i Power64, Windows ARM64, Windows Server 2019 & 2022
  • Generic rework to support more than just Unix Domain sockets
  • Add support for AF_TIPC (on Linux)
  • Add support for using sockets passed as standard input
  • Add support for address-specific, non-standard URIs (for example
    unix:// and tipc://), as well as socat addresses
  • Add support for using FileDescriptor for ProcessBuilder Redirects (Java 9+)
  • Add support for peer credentials (PID) on Windows
  • Fix Selector logic
  • Fix cross-compilation on Apple Silicon
  • Fix a file descriptor leak (regression in 2.4.0)
  • Improve behavior on partially unsupported platforms and allow loading of Windows 10 native
    library on other Windows versions (e.g., Windows Server 2022, Windows 8.1).
  • Javadoc improvements, Code cleanup
  • Deprecate AFUNIXSocketCapability in favor of AFSocketCapability
  • Drop support for Java 7
junixsocket - junixsocket 2.4.0

Published by kohlschuetter about 3 years ago

  • New supported platforms: NetBSD, OpenBSD, DragonFlyBSD (AMD64-builds included by default)
  • Add support for Datagram sockets
  • Add support for non-blocking I/O, Java NIO SocketChannel, DatagramChannel, ByteBuffer, Selector, Pipe, etc.
  • Add support for socketpair (with IP-based emulation on Windows)
  • Add support for casting FileDescriptors to Socket, etc.
  • Add support for Peer Credentials on Solaris/Illumos
  • Improved creation and reuse of AFUNIXSocketAddress instances
  • Add basic support to wrap an AFUNIXSocketAddress as an InetAddress
  • Add fast-path for single-byte read/write
  • Significant internal code refactoring and cleanup (both Java and native C code)
  • AFUNIXRegistry lookup can now take a timeout parameter (to coordinate between starting processes)
  • Replaced the "finalize" logic with a custom Cleaner for Java 9 and above
  • Fixed compatibility issue with OkHttpClient, add demo code
  • Fixed a race condition when connecting to a registry that's just starting up.
  • More test cases, increased unit test code coverage
  • Simplified local compilation on non-macOS/Linux systems.
  • Improved selftest
junixsocket - junixsocket 2.3.4

Published by kohlschuetter over 3 years ago

Fix bind/stat on glibc-based Linux on aarch64 and RISC-V (regression from 2.3.2)

junixsocket - junixsocket 2.3.3

Published by kohlschuetter over 3 years ago

  • Add support for aarch64 on Apple Silicon Macs
  • Improved throughput by up to 40% by removing some JNI overhead (now on par with JEP380)
  • Fix “undefined symbol: stat” error on older Linux machines
  • Fix self-test on Windows; add more system information to selftest
  • Fix LICENSE/NOTICE files (no license change, just reorganization)
  • Fix build issues with RISC-V (use LLVM 9)
  • Fix build issues on macOS
  • Improve handling of ancillary receive buffers
  • Add a new system property to control what happens when the library override fails to load
  • Add an Xcode project to simplify cross-compilation; improved crossclang
junixsocket - junixsocket 2.3.3 snapshot (work in progress)

Published by kohlschuetter over 3 years ago