Bug 100231 - KRFB allows only one concurrent connection
Summary: KRFB allows only one concurrent connection
Status: CONFIRMED
Alias: None
Product: krfb
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Mandrake RPMs Linux
: HI normal
Target Milestone: ---
Assignee: George Goldberg
URL:
Keywords:
: 143060 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-25 10:47 UTC by Tomasz Chmielewski
Modified: 2020-01-15 10:32 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Chmielewski 2005-02-25 10:47:03 UTC
Version:            (using KDE KDE 3.3.2)
Installed from:    Mandrake RPMs
OS:                Linux

KRFB allows only one concurrent connection.

So, if one person is connected, a second attempt to connect will be rejected.

One might ask, why two people should collaborate on one remote VNC desktop, but sometimes it is very useful.

Another case is when someone has a dynamic IP address (whether it's the KRFB server or VNC client): when this IP changes, and KRFB still thinks the client is connected (because network connections were not closed properly and still exist), so it won't allow a second connection - which means people with dynamic IPs often have trouble reconnecting to KRFB.


VINO VNC server from Gnome allows multiple connections.
Comment 1 tim 2005-02-25 20:41:12 UTC
I removed that feature away because its relatively difficult to do with krfb's implementation. Connections are accepted by kded/kinetd, which then starts krfb. 

It's easy to pass a TCP connection when you start a process (just fork and take it over in the new process), but there is no easy and portable way in Unix to pass a TCP connection to a running process.
Comment 2 Bram Schoenmakers 2007-07-28 01:42:40 UTC
*** Bug 143060 has been marked as a duplicate of this bug. ***
Comment 3 George Goldberg 2009-09-15 23:54:05 UTC
This actually *almost* works in current krfb trunk. I can connect multiple times, but the server shuts down when one connection disconnects, forcing all the others to as well. Also, the notification item tooltip, which lists who is currently connected, only displays the most recent connection.

The good news is, I reckon it won't take more than a few small adjustments to the code to make this work properly :).
Comment 4 George Goldberg 2009-09-16 14:33:56 UTC
Upping the priority so I remember to fix this one soon.
Comment 5 George Kiagiadakis 2010-11-10 20:52:49 UTC
This should be working in trunk now. I haven't tested it though.
Comment 6 Alon Bar-Lev 2013-01-13 11:00:20 UTC
Does not work for me... ever connection disconnect the previous.

kde-base/krfb-4.9.3