@Override
    public InputStream getInputStream() throws IOException {
        if (metricsIS == null) {
            metricsIS = new MetricsInputStream(sock.getInputStream());
        }
        return metricsIS;
    }
A wrapper to SSLSocket with metric feature to record socket read time.
aws-java-sdk-core/src/main/java/com/amazonaws/internal/SdkSSLMetricsSocket.java