vncdotool version
vncdotool 1.1.0, python 3.1.0
VNC server and version
Unknown, but it uses protocol version 3.8
Steps to reproduce
from vncdotool import api
import logging
logging.basicConfig(level=logging.DEBUG)
with api.connect('<VNC_SERVER>', timeout=60) as cli:
cli.captureScreen('vnc.png')
Expected result
Screenshot captured successfully.
Which erroneous result did you get instead
Note: I printed data param in rfb.RFBClient.dataReceived() to get additional info.
INFO:twisted:Starting factory <vncdotool.client.VNCDoToolFactory object at 0x10f82a7a0>
b'RFB 003.008\n'
INFO:twisted:Using protocol version 3.8
b'\x01\x01'
INFO:twisted:Offered <AuthTypes.NONE: 1>
b'\x00\x00\x00\x01\x00\x00\x00\x00\x04\x00\x03\x00\xff\xff\xff!'
INFO:twisted:Cannot connect b''
INFO:twisted:Cannot connect b''
INFO:twisted:Cannot connect b''
INFO:twisted:Cannot connect b''
INFO:twisted:Cannot connect b''
INFO:twisted:Cannot connect b''
INFO:twisted:Cannot connect b''
INFO:twisted:Cannot connect b''
INFO:twisted:Cannot connect b''
INFO:twisted:Cannot connect b''
INFO:twisted:Cannot connect b''
INFO:twisted:Cannot connect b''
INFO:twisted:Cannot connect b''
INFO:twisted:Cannot connect b''
INFO:twisted:Cannot connect b''
INFO:twisted:Cannot connect b''
INFO:twisted:Cannot connect b''
....
It didn't stop until timed out (60s later).
Additional information
Since the waitfor variable in _handleAuthFailed is 0, it kepts reconnecting instantly until timed out.
This bug also occurs in version 0.13.0.
vncdotool version
vncdotool 1.1.0, python 3.1.0
VNC server and version
Unknown, but it uses protocol version 3.8
Steps to reproduce
Expected result
Screenshot captured successfully.
Which erroneous result did you get instead
Note: I printed
dataparam inrfb.RFBClient.dataReceived()to get additional info.It didn't stop until timed out (60s later).
Additional information
Since the
waitforvariable in_handleAuthFailedis 0, it kepts reconnecting instantly until timed out.This bug also occurs in version
0.13.0.