From: basv at sara.nl (basv at sara.nl)
Date: Mon, 26 Apr 1999 15:38:33 GMT
Subject: Trouble with httplib and IRIX
Message-ID: <7g219p$hvb$1@nnrp1.dejanews.com>
Content-Length: 1491
X-UID: 1537                                                  

Hello,

 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. When i kill ,restart and run
 it again, it gives an error message that it couldn't find the host. This is
 the behaviour that i would expect the first time.

 My question is does somebody else have encounter the same problems on a
 IRIX machine?

 -------------------- Python programm ------------------------

#!/usr/local/bin/python

import socket
import httplib


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()

--
********************************************************************
*                                                                  *
*  Bas van der Vlies                     e-mail: basv at sara.nl      *
*  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
*  Kruislaan 415                         fax:    +31 20 6683167    *
*  1098 SJ Amsterdam                                               *
*                                                                  *
********************************************************************

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




