The GitHub Actions job "Java CI" on 
commons-vfs.git/fix/UrlFileObject_KeepAliveStream has succeeded.
Run started by GitHub user garydgregory (triggered by garydgregory).

Head commit for run:
e86dc541d9780b3a39e478853d2971fe0a24675e / Gary Gregory <[email protected]>
Fix UrlFileObject when Java 8's KeepAliveStream reuse causes
IOException: Stream closed.

doGetContentSize, doGetLastModifiedTime and doGetType now use HEAD for
HttpURLConnection and call conn.connect() instead of opening and closing
a full GET InputStream. This removes the body download and avoids the
Java 8 KeepAliveStream reuse that causes IOException: Stream closed.

doGetInputStream now sets Connection: close for HTTP URLs on Java 8 so
the pooled socket is not reused for the next metadata call.

With this change LastModifiedTests.testGetLastModifiedFile and the
VfsClassLoaderTests and UrlProviderHttpTest provider tests no longer hit
the Stream closed error on Java 8 on macOS and Windows.

Report URL: https://github.com/apache/commons-vfs/actions/runs/32670692893

With regards,
GitHub Actions via GitBox

Reply via email to