Bug 264580 - krdc doesn't close connection when grab keys is enabled on disconnect
Summary: krdc doesn't close connection when grab keys is enabled on disconnect
Status: RESOLVED DUPLICATE of bug 184840
Alias: None
Product: krdc
Classification: Applications
Component: VNC (show other bugs)
Version: unspecified
Platform: FreeBSD Ports FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-28 06:30 UTC by Adam Vande More
Modified: 2011-01-30 20:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Vande More 2011-01-28 06:30:30 UTC
Version:           unspecified (using KDE 4.5.4) 
OS:                FreeBSD

make vnc connection to password protected host
select "grab keys" from gui menu
disconnect and leave "grab keys" selected
attempt to make new connection to same host
attempt will stall, password prompt is never displayed
"sockstat -4 |grep krdc" will show krdc still has a connection open
exiting krdc completely will cause the connection to be dropped and you can then use the connection again after restarting krdc

It would also help if the grab keys always defaulted to off since when you reopen the connection, grab key is still selected and the password dialog will not accept input.  Then you have to cancel the password dialog, deselect grab keys, completely exit from krdc again, restart it for a second time, open your connection, and enter the vnc password to start using the connection again.

Reproducible: Always

Steps to Reproduce:
See above.

Actual Results:  
krdc doesn't disconnect the vnc connection when the "Disconnect" button is pressed while the "Grab Keys" button is selected.

Expected Results:  
I expect a clean disconnect so I can reuse the connection in the same krdc session.
Comment 1 Adam Vande More 2011-01-28 06:34:47 UTC
Well, I included some incorrect information.  The grab keys button has no influence on the problem, anytime "Disconnect" is clicked on a vnc connection you can't resume that same connection without first terminating the krdc process.
Comment 2 Urs Wolfer 2011-01-30 10:30:56 UTC
Do you think this bug is related to bug #184840?
Comment 3 Adam Vande More 2011-01-30 20:01:50 UTC
Yes that is the issue.  I applied the patch from Stephan and rebuilt LibVNCServer to test.  After applying the patch the problem is resolved.

I do not understand why that patch is not in LibVNCServer as I'm using libvncserver-0.9.7_2 and the bug report page indicates the problem was fixed in 0.9.1.

So this isn't a krdc issue and a duplicate it appears.  Thanks for the help.
Comment 4 Urs Wolfer 2011-01-30 20:06:17 UTC

*** This bug has been marked as a duplicate of bug 184840 ***