mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
make sslDisconnect use blocking I/O
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37392 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4803d56747
commit
9d0912c2f3
1 changed files with 2 additions and 2 deletions
|
@ -959,8 +959,6 @@ GSTLSHandlePush(gnutls_transport_ptr_t handle, const void *buffer, size_t len)
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
// TLS may need to read data during teardown, and we need to wait for it.
|
||||
[self setNonBlocking: NO];
|
||||
// Don't DESTROY ivars below. First release them, then set nil, because
|
||||
// `session' may need this back-reference during TLS teardown.
|
||||
TEST_RELEASE(opts);
|
||||
|
@ -987,6 +985,8 @@ GSTLSHandlePush(gnutls_transport_ptr_t handle, const void *buffer, size_t len)
|
|||
|
||||
- (void) sslDisconnect
|
||||
{
|
||||
// TLS may need to read data during teardown, and we need to wait for it.
|
||||
[self setNonBlocking: NO];
|
||||
[session disconnect];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue