Although the socket typically ends up closed before cleanup, this is not always the case, resulting in warnings like <...>/phabricator/__init__.py:248: ResourceWarning: unclosed <ssl.SSLSocket fd=3, ...>. This patch fixes that behavior to ensure the connection socket is closed before garbage collection begins.
Although the socket typically ends up closed before cleanup, this is not always the case, resulting in warnings like
<...>/phabricator/__init__.py:248: ResourceWarning: unclosed <ssl.SSLSocket fd=3, ...>
. This patch fixes that behavior to ensure the connection socket is closed before garbage collection begins.