raven-python
raven-python copied to clipboard
SNI support #523
As it mentionned on : https://docs.python.org/3/library/ssl.html#socket-creation
Since Python 3.2 and 2.7.9, it is recommended to use the SSLContext.wrap_socket() of an SSLContext instance to wrap sockets as SSLSocket objects. The helper functions create_default_context() returns a new context with secure default settings. The old wrap_socket() function is deprecated since it is both inefficient and has no support for server name indication (SNI) and hostname matching.
Check prerequisites and apply the method :
- The new one for supported python version
- the legacy one from other ones