Bug 250303 - Default timeout causes connection timeouts against busy servers
Summary: Default timeout causes connection timeouts against busy servers
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rhnlib
Version: 5.0
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Pradeep Kilambi
QA Contact: Beth Nackashi
URL:
Whiteboard:
: 293171 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-07-31 17:49 UTC by Martin Poole
Modified: 2016-10-10 16:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-20 21:22:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0145 0 normal SHIPPED_LIVE rhnlib bug fix update 2009-01-20 16:05:05 UTC

Description Martin Poole 2007-07-31 17:49:47 UTC
+++ This bug was initially created as a clone of Bug #250300 +++

Description of problem:

The addition of the default timeout of 30 seconds causes connection timeouts
against busy servers or those with many registered clients.

Version-Release number of selected component (if applicable):

2.2.5-1.el5
How reproducible:

Always against busy servers.

Steps to Reproduce:
1. Create secure server with 
2.
3.
  
Actual results:

# rhnreg_ks --activationkey=test-activation-key
Connection timed out on readline

Expected results:

No timeout.


Additional info:

The issue is with the DEFAULT_TIMEOUT in
/usr/lib/python2.5/site-packages/rhn/SSL.py and its use in connections.py.

Whilst a timeout of 30 seconds might not be unreasonable for the SSL connection
to take place it is not suitable for the ongoing connection. The socket timeout
should be reset to a more reasonable value once the SSL connection is in place.

Attached is a server-side cgi which just delays for a requested amount of time
and a small python script to exercise this cgi via the rhnlib code.

-- Additional comment from mpoole on 2007-07-31 13:43 EST --
Created an attachment (id=160345)
python test example


-- Additional comment from mpoole on 2007-07-31 13:45 EST --
Created an attachment (id=160346)
server-side delay routine

Comment 1 RHEL Program Management 2007-10-16 03:51:53 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 2 Suzanne Logcher 2007-10-24 22:45:04 UTC
*** Bug 293171 has been marked as a duplicate of this bug. ***

Comment 3 RHEL Program Management 2007-11-02 20:04:36 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 4 RHEL Program Management 2007-11-03 01:14:31 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 5 RHEL Program Management 2007-11-03 01:35:38 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 8 RHEL Program Management 2008-06-02 20:34:50 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 14 errata-xmlrpc 2009-01-20 21:22:54 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0145.html


Note You need to log in before you can comment on or make changes to this bug.