← Back to team overview

python-jenkins-developers team mailing list archive

[Bug 1273329] Re: Connections can hang forever

 

Reviewed:  https://review.openstack.org/138982
Committed: https://git.openstack.org/cgit/stackforge/python-jenkins/commit/?id=e197dd54544da848ec86c8843b883221c69afb31
Submitter: Jenkins
Branch:    master

commit e197dd54544da848ec86c8843b883221c69afb31
Author: Khai Do <zaro0508@xxxxxxxxx>
Date:   Thu Dec 4 00:16:09 2014 -0800

    Add a default http timeout for connections to jenkins
    
    Without a timeout a script can hang forever when attempting
    to connect to jenkins. This change sets a default timeout
    of 2 minutes.  Selection of default value is pretty arbitrary
    on this change.
    
    Closes-Bug: #1273329
    Change-Id: If84778231b88d78a02a89a56f38f95d6deada80a


** Changed in: python-jenkins
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Python
Jenkins Developers, which is subscribed to Python Jenkins.
https://bugs.launchpad.net/bugs/1273329

Title:
  Connections can hang forever

Status in Python API for Jenkins:
  Fix Committed

Bug description:
  Jenkins does not always connect, but this library does not provide for
  http timeouts.  Just this weekend, I saw a script hang for 36 hours
  because of this, even though this script was running against
  localhost.  I will try setting socket.setdefaulttimeout, but globals
  are bad and a sane default would be better.

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-jenkins/+bug/1273329/+subscriptions


References