mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-21 15:51:43 +02:00
Net: near complete merge to 1.4.2
This commit is contained in:
@@ -84,9 +84,15 @@ HTTPSession::HTTPSession(const StreamSocket& socket, bool keepAlive):
|
||||
|
||||
HTTPSession::~HTTPSession()
|
||||
{
|
||||
if (_pBuffer) HTTPBufferAllocator::deallocate(_pBuffer, HTTPBufferAllocator::BUFFER_SIZE);
|
||||
close();
|
||||
delete _pException;
|
||||
if (_pBuffer) HTTPBufferAllocator::deallocate(_pBuffer, HTTPBufferAllocator::BUFFER_SIZE);
|
||||
try
|
||||
{
|
||||
close();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
}
|
||||
delete _pException;
|
||||
}
|
||||
|
||||
|
||||
@@ -229,4 +235,10 @@ void HTTPSession::attachSocket(const StreamSocket& socket)
|
||||
}
|
||||
|
||||
|
||||
void HTTPSession::attachSessionData(const Poco::Any& data)
|
||||
{
|
||||
_data = data;
|
||||
}
|
||||
|
||||
|
||||
} } // namespace Poco::Net
|
||||
|
Reference in New Issue
Block a user