jupyter / nb2kg

Other
73 stars 31 forks source link

Ensure that shutdown_all takes potential ssl values into account #5

Closed kevin-bates closed 6 years ago

kevin-bates commented 6 years ago

The code to handle the shutdown-all request (when Notebook receives SIGTERM) was not connecting to the Gateway server with the required KG_ values that convey information necessary for proper SSL behavior.

The shutdown_all() method doesn't use the async fetch_kg() method which contains the necessary code to convey SSL information. This change moves that code to a method so that it can be leveraged by other methods that cannot use fetch_kg() to connect to the gateway.

Fixes #4