Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSLManager causes a crash #500

Closed
pqvst opened this issue Jul 18, 2014 · 2 comments
Closed

SSLManager causes a crash #500

pqvst opened this issue Jul 18, 2014 · 2 comments
Assignees
Milestone

Comments

@pqvst
Copy link

pqvst commented Jul 18, 2014

If you create an instance of a HTTPSClientSession without providing a Context (which is possible with the available constructors), then the SSLManager will cause a crash during destruction.

// crash
int main()
{
    Poco::Net::HTTPSClientSession session;
}

Note however if you manually shutdown the SSLManager before termination then the crash doesn't occur.

// no crash
int main()
{
    Poco::Net::HTTPSClientSession session;
    Poco::Net::SSLManager::instance().shutdown();
}
@cryptoknight
Copy link
Contributor

This seems to be a long running defect: http://pocoproject.org/forum/viewtopic.php?f=12&t=5087&p=8146&hilit=sslmanager

On my project, we have the shutdown call inside the destructor of all our Poco::Applications. Would be good to be able to remove it one of these days.

@aleks-f
Copy link
Member

aleks-f commented Jul 21, 2014

This is probably best solved in the same manner as Net initialization on Windows

If someone tests it and sends a pull request, I'll be happy to merge it.

@obiltschnig obiltschnig added this to the Release 1.6.0 milestone Nov 19, 2014
@obiltschnig obiltschnig self-assigned this Nov 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants