Prev · NextSTR #3476: Make connection timeout adjustable

Status:4 - Pending
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:3 - Applies to all machines and operating systems
Subsystem:CUPS API
Summary:Make connection timeout adjustable
Version: -feature
Created By:twaugh.redhat
Assigned To:mike
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails


Trouble Report Files:

Name/Time/Date/Filename/Size
twaugh.redhat: 05:58 Jan 11, 2010
 
0001-Connect-to-server-asynchronously-and-wait-15s.patch (3k)
 

Trouble Report Dialog:

Name/Time/Date/Text
twaugh.redhat: 05:58 Jan 11, 2010
 
The default connection timeout is 3 or 4 minutes which is a long time to block in a library function.

Would it be possible to connection asynchronously with a configurable timeout?  See patch for example with fixed 15s timeout.

Original bug report:
  https://bugzilla.redhat.com/show_bug.cgi?id=554336

 
wpelzlbauer: 11:58 Nov 28, 2011
 
If someone makes function _httpCreate() from cups/http.c public:

  httpCreate()
  httpSetTimeout()
  httpReconnect()

Will this work ?

 
mike: 09:35 Nov 29, 2011
 
Wolfgang,

Not at present.  Asynchronous connect() is not universally-supported, so we need to find a more general solution.

In the meantime, httpConnect() and friends should not be used on the main thread if this is a concern.