Try to cope with failure of remote end to respond to tls shutdown.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37417 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2013-11-27 12:26:33 +00:00
parent ce7b612350
commit fab72a3218
5 changed files with 50 additions and 26 deletions

View file

@ -197,9 +197,13 @@ typedef ssize_t (*GSTLSIOW)(gnutls_transport_ptr_t, const void *, size_t);
*/
- (BOOL) active;
/* Disconnects and closes down the session.
/* Disconnects and closes down the session.<br />
* The reusable flag specifies whether we intend to reuse the underlying
* connection.<br />
* Returns YES on success, NO if the shutdown did not complete cleanly
* and the underlying connection cannot be reused.
*/
- (void) disconnect;
- (BOOL) disconnect: (BOOL)reusable;
/* Try to complete a handshake ... return YES if complete, NO if we need
* to try again (would have to wait for the remote end).<br />