mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TLS
- Corrected ::recv error handling.
This commit is contained in:
parent
b77ac4114c
commit
517e48506e
1 changed files with 7 additions and 1 deletions
|
@ -347,7 +347,13 @@ void TLSClient::recv (std::string& data)
|
|||
}
|
||||
|
||||
// Something happened.
|
||||
if (received < 0)
|
||||
if (received < 0 && gnutls_error_is_fatal (received) == 0)
|
||||
{
|
||||
if (_debug)
|
||||
std::cout << "c: WARNING " << gnutls_strerror (received) << "\n";
|
||||
}
|
||||
|
||||
else if (received < 0)
|
||||
throw std::string (gnutls_strerror (received));
|
||||
|
||||
buffer [received] = '\0';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue