code: async def _get_new_sock(self):
          '''
          On 'Connection: close' headers we've to create a new connection.
          This reaches in to the parent session and pulls a switcheroo, dunking
          the current connection and requesting a new one.
          '''
          self.sock._active = False
          self.sock = await self.session._grab_connection(self.uri)
          self.port = self.sock.porync def _get_new_sock(self):
          '''
          On 'Connection: close' headers we've to create a new connection.
          This reaches in to the parent session and pulls a switcheroo, dunking
          the current connection and requesting a new one.
          '''
          self.sock._active = False
          self.sock = await self.session._grab_connection(self.uri)
          self.port = self.sock.port
docs: On 'Connection: close' headers we've to create a new connection.
          This reaches in to the parent session and pulls a switcheroo, dunking
          the current connection and requesting a new one.