Martin Zink created MINIFICPP-2131:
--------------------------------------

             Summary: GetTCP's concurrent-handler-count not threadsafe
                 Key: MINIFICPP-2131
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2131
             Project: Apache NiFi MiNiFi C++
          Issue Type: Bug
            Reporter: Martin Zink
            Assignee: Martin Zink


GetTCP utilizes his own threadpool to handle the connections, but the handlers 
and the futures are not properly synced, they are reliant that the 
worker_threads from the threadpool access the socket_ring_buffer in the same 
order which they are instantiated which is not a guarantee. 

With multiple endpoints (endpoint-list) and multiple concurrent handlers 
(concurrent-handler-count > 1) the endpoints and their respective futures could 
get mixed up, with unintended consequences like multiple handlers for one 
endpoint and none for the other or some read access violation.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to