title: Python urllib2. URLError: <urlopen error [Errno 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted>
body: <p>I'm making multiple connection to API. Making delete query. I got that error on a 3000'th query. </p>
  
  <p>Something like this:</p>
  
  <pre><code> def delete_request(self,path):
      opener = urllib2.build_opener(urllib2.HTTPHandler)
      request = urllib2.Request('%s%s'%(self.endpoint,path))
      signature = self._gen_auth('DELETE', path, '')
      request.add_header('X-COMPANY-SIGNATURE-AUTH', signature)
      request.get_method = lambda: 'DELETE'
      resp = opener.open(request)
  </code></pre>
  
  <p>Than in console:</p>
  
  <pre><code>for i in xrange(300000): 
      con.delete_request('/integration/sitemap/item.xml/media/%d/' % i)
  </code></pre>
  
  <p>After about 3000'th request it says:</p>
  
  <pre><code>URLError: urlopen error [Errno 10048]
  Only one usage of each socket address (protocol/network address/port)
  is normally permitted
  </code></pre>