Junixsocket Versions Save

Unix Domain Sockets in Java (AF_UNIX)

junixsocket-2.9.1

1 month 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-2.9.0

3 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-2.8.3

6 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-2.8.2

6 months ago

Fix concurrency issue with AFSocketServerConnector, AFSelectionKey

junixsocket-2.8.1

7 months ago
  • Fix UnsatisfiedLinkError with noexec temporary directory on RHEL 9 and others

junixsocket-2.8.0

7 months 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-2.7.2

8 months 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-2.7.1

8 months 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-2.7.0

9 months 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-2.6.2

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