Task #7700
Use the AutoCloseClientInputStream class in the d1_libclient_java in Metacat replication
Start date:
2016-03-29
Due date:
% Done:
100%
Milestone:
None
Product Version:
*
Story Points:
Sprint:
Description
In the Metacat ReplicationService class, the getURLStream method will create a local ssl client when it is called. The inputStream object returned by this method will be closed but the http client wouldn't be closed.
Rob wrote a new class AutoCloseClientInputStream, the class will close both the InputStream and http client when the InputStream reaches the end.
History
#1 Updated by Jing Tao over 8 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
- translation missing: en.field_remaining_hours set to 0.0
We used the class to replace the regular InputStream class. It worked on both the local metacat replication and cn-dev.