<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How can we correctly release the GIS instance and close all open http client connections? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-we-correctly-release-the-gis-instance-and/m-p/1012980#M5370</link>
    <description>&lt;P&gt;Whenever we use the GIS instance for connecting to ArcGIS Online and the provided services we try to explicitly delete and release the GIS instance by calling del. We used the __enter__ &amp;amp; __exit__ pattern in our wrapper implementation, so that you can easily wrap the returned instance by a with statement. When we are running our unit tests we see some "unclosed &amp;lt;ssl.SSLSocket&amp;gt;" warnings popping up. Is there any best practice how to release the GIS instance and all related http client connections?&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/gisfromscratch/geoint-py/issues/2" target="_self"&gt;geoint-py issue #2 @ Github&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Dec 2020 18:02:14 GMT</pubDate>
    <dc:creator>OSINT_ENGINEER</dc:creator>
    <dc:date>2020-12-30T18:02:14Z</dc:date>
    <item>
      <title>How can we correctly release the GIS instance and close all open http client connections?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-we-correctly-release-the-gis-instance-and/m-p/1012980#M5370</link>
      <description>&lt;P&gt;Whenever we use the GIS instance for connecting to ArcGIS Online and the provided services we try to explicitly delete and release the GIS instance by calling del. We used the __enter__ &amp;amp; __exit__ pattern in our wrapper implementation, so that you can easily wrap the returned instance by a with statement. When we are running our unit tests we see some "unclosed &amp;lt;ssl.SSLSocket&amp;gt;" warnings popping up. Is there any best practice how to release the GIS instance and all related http client connections?&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/gisfromscratch/geoint-py/issues/2" target="_self"&gt;geoint-py issue #2 @ Github&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 18:02:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-we-correctly-release-the-gis-instance-and/m-p/1012980#M5370</guid>
      <dc:creator>OSINT_ENGINEER</dc:creator>
      <dc:date>2020-12-30T18:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can we correctly release the GIS instance and close all open http client connections?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-we-correctly-release-the-gis-instance-and/m-p/1012987#M5371</link>
      <description>&lt;P&gt;It would be interesting to hear from the development team on this question.&amp;nbsp; In the meantime, try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;gis._con.logout()&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Dec 2020 18:16:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-we-correctly-release-the-gis-instance-and/m-p/1012987#M5371</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-12-30T18:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can we correctly release the GIS instance and close all open http client connections?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-we-correctly-release-the-gis-instance-and/m-p/1013129#M5374</link>
      <description>&lt;P&gt;We have to manually close the underlying session instance of the internal connection implementation. Please take a look at this &lt;A href="https://github.com/gisfromscratch/geoint-py/commit/24eb97d628ed96f643631888ee7d6655778280f5" target="_self"&gt;fix #2 the underlying session is closed manually&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Would love to get some feedback from the DEV team.&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371"&gt;@JoshuaBixby&lt;/a&gt;&amp;nbsp;thank you for narrowing this down.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 14:18:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-we-correctly-release-the-gis-instance-and/m-p/1013129#M5374</guid>
      <dc:creator>OSINT_ENGINEER</dc:creator>
      <dc:date>2020-12-31T14:18:48Z</dc:date>
    </item>
  </channel>
</rss>

