Netty transport selection: epoll where available, NIO everywhere else, Unix domain sockets on epoll only.
Non-shaded Netty 4.2, whose event-loop API is MultiThreadIoEventLoopGroup over an IoHandler factory — the 4.1-era EpollEventLoopGroup constructors are deprecated shells around the same thing.
Netty transport selection: epoll where available, NIO everywhere else, Unix domain sockets on epoll only. Non-shaded Netty 4.2, whose event-loop API is MultiThreadIoEventLoopGroup over an IoHandler factory — the 4.1-era EpollEventLoopGroup constructors are deprecated shells around the same thing.
(->address addr)Coerce the :address / target forms to a SocketAddress: an existing SocketAddress passes through, {:unix path} and "unix:///path" become domain socket addresses, an integer is a port on all interfaces.
Coerce the :address / target forms to a SocketAddress: an existing
SocketAddress passes through, {:unix path} and "unix:///path" become domain
socket addresses, an integer is a port on all interfaces.(event-loop-group transport threads)Daemon threads, deliberately — grpc's own default groups are daemon too. A non-daemon event loop pins the JVM after main returns, which surfaces as 'tests pass, process never exits' the first time anything runs outside a harness that calls System/exit.
Daemon threads, deliberately — grpc's own default groups are daemon too. A non-daemon event loop pins the JVM after main returns, which surfaces as 'tests pass, process never exits' the first time anything runs outside a harness that calls System/exit.
(resolve-transport transport)Turn the :transport opt into a concrete choice. :auto prefers epoll and falls back to :nio; asking for :epoll where it is unavailable is an error with Netty's own diagnosis as the cause.
Turn the :transport opt into a concrete choice. :auto prefers epoll and falls back to :nio; asking for :epoll where it is unavailable is an error with Netty's own diagnosis as the cause.
(unix path)A Unix domain socket address. Serving or dialing one requires the epoll transport; the server/client builders validate that eagerly.
A Unix domain socket address. Serving or dialing one requires the epoll transport; the server/client builders validate that eagerly.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |