easy_install tries to open the same URL multiple times despite timing out

Create issue
Issue #28 invalid
Sridhar Ratnakumar created an issue

I added a print statement printing "trying to open .." in the function open_with_auth.

essentially easy_install/buildout tries to open the same URL multiple times. this is silly.

{{{ trying to open http://ipython.scipy.org Download error: timed out -- Some packages may not be found! trying to open http://ipython.scipy.org/dist Download error: timed out -- Some packages may not be found! trying to open http://ipython.scipy.org Download error: timed out -- Some packages may not be found! trying to open http://ipython.scipy.org/dist Download error: timed out -- Some packages may not be found! trying to open http://ipython.scipy.org Download error: timed out -- Some packages may not be found! trying to open http://ipython.scipy.org Download error: timed out -- Some packages may not be found! trying to open http://ipython.scipy.org Download error: timed out -- Some packages may not be found! trying to open http://ipython.scipy.org Download error: timed out -- Some packages may not be found! trying to open http://ipython.scipy.org }}}

Comments (7)

  1. Tarek Ziadé repo owner

    I tried to install iPython and I didn't get this probelm, could you give me the exact command I should launch to reproduce this ?

  2. Former user Account Deleted

    Perhaps this happens only during socket timeouts? Try doing a `socket.setdefaulttimeout(2)` or something?

    I remember setting the timeout in the old code I had. If the timeout is really small (1 sec, for eg.), they we may be able to repro the issue.

  3. Sridhar Ratnakumar reporter

    Well, I can't reproduce it either (after setting socket timeout). Drat! I should have given a detailed repro steps earlier when I reported this. My apologies; please feel free to resolve this issue as invalid.

  4. Log in to comment