mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-18 03:29:47 +02:00
- don't throw if SSL client unexpectedly closes connection as this seems to be the normal behavior of web browsers (seen with Chrome and IE)
This commit is contained in:
@@ -433,7 +433,15 @@ int SecureSocketImpl::handleError(int rc)
|
|||||||
long lastError = ERR_get_error();
|
long lastError = ERR_get_error();
|
||||||
if (lastError == 0)
|
if (lastError == 0)
|
||||||
{
|
{
|
||||||
if (rc == 0 || rc == -1)
|
if (rc == 0)
|
||||||
|
{
|
||||||
|
// Most web browsers do this, don't report an error
|
||||||
|
if (_pContext->isForServerUse())
|
||||||
|
return 0;
|
||||||
|
else
|
||||||
|
throw SSLConnectionUnexpectedlyClosedException();
|
||||||
|
}
|
||||||
|
else if (rc == -1)
|
||||||
{
|
{
|
||||||
throw SSLConnectionUnexpectedlyClosedException();
|
throw SSLConnectionUnexpectedlyClosedException();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user