ListenTCP 2.1.0

Bundle
org.apache.nifi | nifi-standard-nar
Description
Listens for incoming TCP connections and reads data from each connection using a line separator as the message demarcator. The default behavior is for each message to produce a single FlowFile, however this can be controlled by increasing the Batch Size to a larger value for higher throughput. The Receive Buffer Size must be set as large as the largest messages expected to be received, meaning if every 100kb there is a line separator, then the Receive Buffer Size must be greater than 100kb. The processor can be configured to use an SSL Context Service to only allow secure connections. When connected clients present certificates for mutual TLS authentication, the Distinguished Names of the client certificate's issuer and subject are added to the outgoing FlowFiles as attributes. The processor does not perform authorization based on Distinguished Name values, but since these values are attached to the outgoing FlowFiles, authorization can be implemented based on these attributes.
Tags
listen, ssl, tcp, tls
Input Requirement
FORBIDDEN
Supports Sensitive Dynamic Properties
false
Properties
Relationships
Name Description
success Messages received successfully will be sent out this relationship.
Writes Attributes
Name Description
tcp.sender The sending host of the messages.
tcp.port The sending port the messages were received.
client.certificate.issuer.dn For connections using mutual TLS, the Distinguished Name of the Certificate Authority that issued the client's certificate is attached to the FlowFile.
client.certificate.subject.dn For connections using mutual TLS, the Distinguished Name of the client certificate's owner (subject) is attached to the FlowFile.