From: dalke at bioreason.com (Andrew Dalke)
Date: Mon, 26 Apr 1999 14:39:47 -0600
Subject: Trouble with httplib and IRIX
References: <7g219p$hvb$1@nnrp1.dejanews.com>
Message-ID: <3724CF13.C4680904@bioreason.com>
Content-Length: 1041
X-UID: 273                                                  

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




