exasol / pyexasol

Exasol Python driver with low overhead, fast HTTP transport and compression
MIT License
72 stars 39 forks source link

Fix deprecation warning by setting SSLContext protocol #101

Closed HadarGreinsmark closed 1 year ago

HadarGreinsmark commented 1 year ago

Since Python 3.10, calling ssl.SSLContext() without specifying the protocol is deprecated (see docs). This sets the protocol to act as a server, as the socket in server_bind() method is being wrapped with server_side=True set. This means hostname checking gets disabled.