Trouble with httplib and IRIX

Andrew Dalke dalke at bioreason.com
Mon Apr 26 16:39:47 EDT 1999


basv at sara.nl said:
>  I'm running python 1.5.2 and running it on IRIX 6.5.3 systems.
> ...
>  I have the following problem when i'm trying to connect to an
>  non-existing machine the program hangs forever.

I don't get that behaviour using 1.5.2c1 or 1.5.1 on either of
our 6.5.2m machines.

max> pwd
/home/u05/dalke/ftps/Python-1.5.2c1
max> env PYTHONPATH=Lib ./python
Python 1.5.2c1 (#4, Apr 14 1999, 16:29:33) [C] on irix6
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import socket
>>> import httplib
>>> httplib.__file__
'Lib/httplib.pyc'
>>> def main():
...     h = httplib.HTTP()
...     h.set_debuglevel(100)
...     try:
...             h.connect("www.nsrc.nus.sg")
...     except socket.error, detail:
...             print 'Connect failed: %s' %detail
... 
>>> main()
connect: ('www.nsrc.nus.sg', 80)
Connect failed: host not found
>>> ^D
max> uname -aR
IRIX64 max 6.5 6.5.2m 11051732 IP30

Can you attach a debugger or force a core dump and see where it's
hanging?

						Andrew
						dalke at acm.org




More information about the Python-list mailing list