InternalPort

The internal port of the node: a Reactor Netty server of its own, apart from the public WebFlux server, serving its routes (the cluster channel, the wait signals, the services' calls and peer reads) over HTTP/1.1 and h2c. Its codecs take messages of up to InternalPortSettings.maxMessageSize bytes, which a host derives from the public port's codec limit (InternalHttp.messageLimit), and the server takes an upgrade request of up to that size too, as the JDK client reaches HTTP/2 by upgrading the first request of a connection. It takes InternalHttp.MAX_CONCURRENT_STREAMS streams on a connection at a time, the limit the node's senders keep within. It keeps Netty's guard against rapid resets: a connection on which it reads more than 200 RST_STREAM frames in 30 seconds is closed.

The internal side is a trusted environment: the network keeps it apart, so building the port checks no credential. An application reads where it is bound (boundPort); building and running it is the host's (of).

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The port the server is bound at, the one the system chose for port 0; fails while it is not bound.

Link copied to clipboard

Whether the server is bound.

Functions

Link copied to clipboard

Binds the server, at once.

Link copied to clipboard

Unbinds the server.