mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-18 11:39:00 +02:00
ssl & unclean shutdown response
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
#include "Poco/Net/SecureStreamSocket.h"
|
||||
#include "Poco/Net/SecureStreamSocketImpl.h"
|
||||
#include "Poco/Net/SSLManager.h"
|
||||
#include "Poco/Net/SSLException.h"
|
||||
#include "Poco/Net/HTTPRequest.h"
|
||||
#include "Poco/Net/HTTPResponse.h"
|
||||
#include "Poco/Net/NetException.h"
|
||||
@@ -190,6 +191,15 @@ void HTTPSClientSession::connect(const SocketAddress& address)
|
||||
}
|
||||
|
||||
|
||||
int HTTPSClientSession::read(char* buffer, std::streamsize length) {
|
||||
try {
|
||||
return HTTPClientSession::read(buffer, length);
|
||||
} catch(SSLConnectionUnexpectedlyClosedException&) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Session::Ptr HTTPSClientSession::sslSession()
|
||||
{
|
||||
return _pSession;
|
||||
|
Reference in New Issue
Block a user