Bug 882110
Summary: | Remote-viewer shows no error if connect to a spice port through vnc protocol | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | tingting zheng <tzheng> | |
Component: | gtk-vnc | Assignee: | Daniel Berrangé <berrange> | |
Status: | CLOSED WONTFIX | QA Contact: | Desktop QE <desktop-qa-list> | |
Severity: | low | Docs Contact: | ||
Priority: | low | |||
Version: | 6.4 | CC: | cfergeau, cwei, dblechte, fidencio, jjongsma, marcandre.lureau, mjenner, mzhan, rbalakri | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 921330 (view as bug list) | Environment: | ||
Last Closed: | 2017-02-08 14:43:14 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: |
Description
tingting zheng
2012-11-30 06:50:22 UTC
It appears that this is caused by the fact that upon connecting to the server port, the vnc client tries to read 12 bytes from the server to determine the vnc server version (see vnc_connection_initialize()). The spice server never sends anything, because it's waiting for the client to send a link message. So remote-viewer sits there waiting forever. Perhaps there should be a timeout for the initial connection, after which point we give up and indicate an error. As pointed by Jonathon, the gtk-vnc waits for the 12 bytes from the server to determine the server version. Looking deeply in the code we can see that vnc_connection_read_wire() tries to connect to the socket but receives no data ("Error receiving data: Resource temporarily unavailable") what will cause a call to g_io_wait() and then coroutine_yield() where gtk-vnc waits forever. I don't see it as a remote-viewer bug, maybe a gtk-vnc bug, but most likely not a bug, at least for me. I'm reassigning it to gtk-vnc for now, then the maintainer can decide if it can be considered as a bug or not. While we have come up with a workaround to avoid this problem, it involves changes to both the spice server and gtk-vnc. This is a low impact bug so not worth the effort of trying to co-ordinate backports for both components in RHEL-6. The fixes will be applied to RHEL-7 only. |