jglobus / JGlobus

jGlobus is a collection of Java client libraries for Globus® Toolkit security, GRAM, and GridFTP.
http://www.globus.org/toolkit/jglobus/
Apache License 2.0
24 stars 44 forks source link

Signal end-of-stream when remote sends a CLOSE notification #136

Closed gbehrmann closed 10 years ago

gbehrmann commented 10 years ago

GlobusGSSCredentialImpl fails when the remote initiates a proper SSL shutdown. The patch changes the logic such that rather than throwing a generic error, the new ClosedGSSException is thrown. The InputStream implementation recognizes this exception and signals end-of-stream to the caller.