[
https://issues.apache.org/jira/browse/NIFI-7566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andy LoPresto updated NIFI-7566:
--------------------------------
Fix Version/s: 1.12.0
Resolution: Fixed
Status: Resolved (was: Patch Available)
> Site-to-Site uses Thread.sleep() to wait for background thread to complete
> its job. It shouldn't.
> -------------------------------------------------------------------------------------------------
>
> Key: NIFI-7566
> URL: https://issues.apache.org/jira/browse/NIFI-7566
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Core Framework
> Reporter: Mark Payne
> Assignee: Mark Payne
> Priority: Major
> Fix For: 1.12.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Currently, the StandardPublicPort sits in a loop, calling
> `Thread.sleep(100L);` while it waits for a background thread to complete its
> job. This can add huge latency to the process of servicing a Site-to-Site
> request/connection. Instead, it should use `Object.wait(100);` or similar and
> be notified when the other thread completes its task.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)