Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dcap: Port DCAP door to the LineBasedDoor
Motivation: FTP and DCAP are both line oriented protocols. The LineBasedDoor was derived from the FTP door to factor out the line oriented nature. It offers a number of features over the existing DCAP door, such as detecting client disconnects even if the interpreter is blocked; thread pool sharing to avoid having to allocate a cell message thread for every client connection; and thread pool sharing to reuse IO threads between connections. Modification: Port the DCAP interpreter to the LineBasedDoor interface. DcapLineBasedInterpreterAdapter adapts the old adapter to the interface of the LineBasedDoor. The old DCapDoor class is deleted. Result: The DCAP door was refactored. Compared to the earlier version it got: - about half the number of threads than before. - reuse of threads to reduce the overhead. - detects client disconnects even if the door is busy. - the legacy feature to block a DCAP door by defining the 'dcapLock' entry in the domain context has been removed. Target: trunk Require-notes: yes Require-book: yes Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de> Reviewed at https://rb.dcache.org/r/9568/
- Loading branch information