Author: arekm Date: Mon Aug 9 12:56:21 2010 GMT Module: pld-builder.new Tag: HEAD ---- Log message: - timeout compatible with python 2.4
---- Files affected: pld-builder.new/client: make-request.sh (1.76 -> 1.77) ---- Diffs: ================================================================ Index: pld-builder.new/client/make-request.sh diff -u pld-builder.new/client/make-request.sh:1.76 pld-builder.new/client/make-request.sh:1.77 --- pld-builder.new/client/make-request.sh:1.76 Thu Apr 29 12:53:48 2010 +++ pld-builder.new/client/make-request.sh Mon Aug 9 14:56:16 2010 @@ -66,13 +66,14 @@ *) echo >&2 "* Sending using http mode to $url" cat - | python -c ' -import sys, urllib2 +import sys, socket, urllib2 try: data = sys.stdin.read() url = sys.argv[1] + socket.setdefaulttimeout(10) req = urllib2.Request(url, data) - f = urllib2.urlopen(req, timeout = 10) + f = urllib2.urlopen(req) f.close() except Exception, e: print >> sys.stderr, "Problem while sending request via HTTP: %s: %s" % (url, e) ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-builder.new/client/make-request.sh?r1=1.76&r2=1.77&f=u _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit