Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropped connection not detected with ViewOnly #922

Open
xekkoman opened this issue Dec 20, 2019 · 2 comments
Open

Dropped connection not detected with ViewOnly #922

xekkoman opened this issue Dec 20, 2019 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@xekkoman
Copy link

xekkoman commented Dec 20, 2019

Good day.
I encountered bug using vncviewer under centos 7.7.1908.
vncviewer version is 1.10.0-4.el7.x86_64

Test case is:

  1. Start script
    while true
    do
    vncviewer -passwd 7.vnc -AlertOnFatalError=0 -ViewOnly *WINDOWS PC ADDRES"
    sleep 1
    done

  2. Connect to windows machine with vncserver

  3. Reboot windows machine

  4. VncViewer will restart and reconnect, you will see windows shutting down screen.

  5. After that vnc will wait forever for mouse or keyboard event, and don`t disconnect from server that closed connection.

gdb backtrace:
(gdb) bt
#0 0x00007f6eabd3cbd3 in select () from /usr/lib64/libc.so.6
#1 0x00007f6eaea86a56 in fl_wait(double) () from /usr/lib64/libfltk.so.1.3
#2 0x00007f6eaea2786f in Fl::wait(double) () from /usr/lib64/libfltk.so.1.3
#3 0x000000000042f056 in run_mainloop() ()
#4 0x000000000041fc25 in main ()

I think, main problem is that network events processed only after keyboard or mouse events acquired.
Because without -ViewOnly flag, vncviewer works properly.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@CendioOssman
Copy link
Member

It sounds like the Windows machine is rebooting without fully closing all TCP connections. At that point the viewer will most likely get stuck as it will not detect that the network is down until it tries to send something (which it won't do when in ViewOnly mode).

I'm afraid I don't have an easy workaround for this.

@CendioOssman CendioOssman changed the title VncViewer stuck in fl::wait() Dropped connection not detected with ViewOnly Dec 25, 2019
@CendioOssman CendioOssman added the bug Something isn't working label Jan 3, 2020
@xekkoman
Copy link
Author

Created pull request, its not directly solves that problem, but still can be useful:
Screen refresh timer. #941

@samhed samhed added the help wanted Extra attention is needed label May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants