Project

General

Profile

Task #7700

Use the AutoCloseClientInputStream class in the d1_libclient_java in Metacat replication

Added by Jing Tao over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Metacat
Target version:
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.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)