title: Selenium WebDriver: socket.error: Connection Reset by Peer
body: <p>I am trying to run Selenium WebDriver using PhantomJS.</p>
  
  <p>Whenever I try execute:</p>
  
  <pre><code>from selenium import webdriver
  x = webdriver.PhantomJS()
  x.get('any address')
  </code></pre>
  
  <p>I get the following error message:</p>
  
  <pre><code>Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
       File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 176, in get
      self.execute(Command.GET, {'url': url})
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 162, in execute
      response = self.command_executor.execute(driver_command, params)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/remote/remote_connection.py", line 350, in execute
      return self._request(url, method=command_info[0], data=data)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/remote/remote_connection.py", line 382, in _request
      resp = self._conn.getresponse()
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1045, in getresponse
      response.begin()
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 409, in begin
      version, status, reason = self._read_status()
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 365, in _read_status
      line = self.fp.readline(_MAXLINE + 1)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 476, in readline
      data = self._sock.recv(self._rbufsize)
  socket.error: [Errno 54] Connection reset by peer
  </code></pre>
  
  <p>Does anyone have any idea about what might be going on?  I was unable to make much sense of what was going on in socket.py, and can't seem to track down __socket.pyd.  This error is happening on a local machine (OS X).</p>