RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 995041 - timeout duration for waiting for a client response is too long (when flushing commands)
Summary: timeout duration for waiting for a client response is too long (when flushing...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: spice-server
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Yonit Halperin
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: 1016182
TreeView+ depends on / blocked
 
Reported: 2013-08-08 12:57 UTC by Yonit Halperin
Modified: 2013-11-21 07:42 UTC (History)
6 users (show)

Fixed In Version: spice-server-0.12.4-3.el6
Doc Type: Bug Fix
Doc Text:
Cause: Sometimes, when the queue of messages to send to the client (aka pipe) is full, the server waits for messages to be sent to the client (such that the pipe is not full). The server does not wait forever, but uses a timeout. This timeout (DISPLAY_CLIENT_TIMEOUT) was set to 150 seconds. Consequence: When the client is unresponsive, the server waits that long timeout period. Also sometimes this caused other problems. Fix: Reduce the timeout to 30 seconds Result: The server now waits only 30 seconds for unresponsive clients.
Clone Of:
: 1016182 (view as bug list)
Environment:
Last Closed: 2013-11-21 07:42:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1571 0 normal SHIPPED_LIVE spice-server bug fix and enhancement update 2013-11-20 21:39:57 UTC

Description Yonit Halperin 2013-08-08 12:57:30 UTC
Description of problem:

When we have to read all the pending commands from the driver's ring (red_worker.c flush_display_commands), we might need to wait for messages to be sent to the client, in case the the pipe to the client is full.
The wait timeout period was set by mistake to 150 seconds.
In case of bugs like 994175, or 977998, where the client is unresponsive, after the wait timeout expires, the server display channel disconnects from the client, and the server continues.
However, the long timeout triggers bug 994211, which can explain some of the server errors encountered in bug 964136.
Reducing the timeout to a more reasonable period (e.g. 30 seconds), will disconnect the display channel, and the server should continue normally, without
hitting bug 994211.


Steps to Reproduce:
Not 100% reproducible.
You can try disconnecting the client implicitly, by turning the client machine to sleep mode, or by disconnecting the network cable. Try to do the disconnection while there are ongoing changes made to the display.

Comment 2 Uri Lublin 2013-08-14 14:17:01 UTC
To test:
1. Connect remote-viewer to a VM.
2. Do something on the VM (e.g run a video).
3. Suspend the client (or disconnect its ethernet cable)
4. Measure the time till disconnection.
5. See if the server has errors.

Comment 4 Uri Lublin 2013-09-04 11:53:33 UTC
(In reply to Uri Lublin from comment #2)
> To test:
> 1. Connect remote-viewer to a VM.
> 2. Do something on the VM (e.g run a video).
> 3. Suspend the client (or disconnect its ethernet cable)
> 4. Measure the time till disconnection.

Most times, only the display channel is being disconnected.
When that happens a warning is logged on the server side, such as:
 SpiceWorker-Warning **  red_worker.c:9738:flush_display_commands: update timeout

> 5. See if the server has errors.


Also, note that this is not 100% reproducible (for me it was less than 10%), and may depend on what the guest is running.

Comment 6 errata-xmlrpc 2013-11-21 07:42:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1571.html


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