mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Reorganise a bit to ensure that TLS is properly shut down before the network
connection it relies on is closed. Needed in case information is buffered in the TLS layer and needs flushing to the remote end before shutdown. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37390 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f368388449
commit
971a8374a8
4 changed files with 38 additions and 18 deletions
|
@ -270,6 +270,11 @@ getAddr(NSString* name, NSString* svc, NSString* pcl, struct sockaddr_in *sin)
|
|||
gzclose(gzDescriptor);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Ensure any SSL/TLS connection has been properly shut down.
|
||||
*/
|
||||
[self sslDisconnect];
|
||||
|
||||
if (descriptor != -1)
|
||||
{
|
||||
[self setNonBlocking: wasNonBlocking];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue