Closed Bug 1667495 Opened 4 years ago Closed 3 years ago

Investigate Storing Connection in CUPSPrinterInfo

Categories

(Core :: Printing: Output, task, P3)

task

Tracking

()

RESOLVED DUPLICATE of bug 1663652

People

(Reporter: nordzilla, Assigned: nordzilla)

Details

(Whiteboard: [print2020_v87])

Attachments

(1 obsolete file)

bug 1662946 introduces a fix for retrieving paper sizes on older versions of Ubuntu (running older versions of CUPS), which require an open connection to retrieve information and cannot retrieve the information via CUPS_HTTP_DEFAULT.

It may be worth investigating whether we should store a connection in the CUPSPrinterInfo struct that is associated with nsPrinterCUPS.

  • Add mConnection data member to CUPSPrinterInfo.
  • Modify TryEnsurePrinterInfo to create and store a connection.
  • Rename EnsurePrinterInfo to TryEnsurePrinterInfo to reflect the fact that it can fail to populate the printer info.
  • Use an established connection to retrieve the paper list information.
Whiteboard: [print2020_v83]
Whiteboard: [print2020_v83] → [print2020_v84]
Whiteboard: [print2020_v84] → [print2020_v85]
Whiteboard: [print2020_v85] → [print2020_v87]

This was one investigation into trying to reduce the wait time when printers time-out on their connections.

Prior to this patch, connections were opened in multiple places, and this patch would reduce it to only one location.

We ended up going with a different solution in bug 1663652. This patch is now obsolete, so I am closing this bug.

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Attachment #9177986 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: