Closed Bug 1144138 Opened 11 years ago Closed 11 years ago

Treeherder client should have a timeout set

Categories

(Tree Management Graveyard :: Treeherder: Client Libraries, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wlach, Assigned: wlach)

References

Details

Attachments

(1 file)

54 bytes, text/x-github-pull-request
mdoglio
: review+
Details | Review
We currently always use httplib's default timeout, which I believe by default means "no timeout". https://docs.python.org/2/library/socket.html#socket.getdefaulttimeout We should probably set a maximum configurable timeout of 2 minutes or something, and throw an exception if we do timeout.
Attached file timeouts —
Assignee: nobody → wlachance
Attachment #8578784 - Flags: review?(mdoglio)
Attachment #8578784 - Flags: review?(mdoglio) → review+
Commit pushed to master at https://github.com/mozilla/treeherder-client https://github.com/mozilla/treeherder-client/commit/f236a3487eb042638836d4d9c9f79d51cab2a362 Bug 1144138 - Set a timeout for treeherder client requests Before we would wait forever. Let's start with 120 seconds, we can always modify in the future.
Commit pushed to master at https://github.com/mozilla/treeherder-service https://github.com/mozilla/treeherder-service/commit/bb2e7c435613f83b7b8cfdbdf89b091da93588ed Bug 1144138 - Set a timeout for treeherder client requests Before we would wait forever. Let's start with 120 seconds, we can always modify in the future.
Merged
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/e481e31ffd9add1a0c9190e3fb3340a453fc0e8c Bug 1144138 - Set a timeout for treeherder client requests Before we would wait forever. Let's start with 120 seconds, we can always modify in the future.
Component: Treeherder → Treeherder: Python Client
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: