프로그램 사용/VNC
libvncserver 접속 끊어짐 문제
구차니
2022. 8. 16. 15:02
에러별 디버그 메시지 출력 위치 추적중.
24/03/2021 11:06:09 rfbProcessClientNormalMessage: FixColourMapEntries unsupported 24/03/2021 11:06:09 Client 192.168.0.6 gone |
[링크 : https://github.com/LibVNC/libvncserver/blob/master/libvncserver/rfbserver.c#L2270]
24/03/2021 10:55:30 hybiReadAndDecode: read; Resource temporarily unavailable24/03/2021 10:55:30 hybiReadAndDecode: read; Resource temporarily unavailable24/03/2021 10:55:30 hybiReadAndDecode: read; Resource temporarily unavailable24/03/2021 10:55:30 hybiReadAndDecode: read; Resource temporarily unavailable24/03/2021 10:55:30 hybiReadHeader: got frame without mask; ret=6 24/03/2021 10:55:30 hybiReadAndDecode: unhandled opcode 13, b0: 9d, b1: 41 24/03/2021 10:55:30 rfbProcessClientNormalMessage: read: Protocol error 24/03/2021 10:55:30 Client 192.168.0.6 gone |
[링크 : https://github.com/LibVNC/libvncserver/blob/master/libvncserver/ws_decode.c#L374]
24/03/2021 11:09:19 Pixel format for client 192.168.0.6: 24/03/2021 11:09:19 87 bpp, depth 5, little endian 24/03/2021 11:09:19 true colour: max r 47360 g 20997 b 2, shift r 179 g 0 b 77 24/03/2021 11:09:19 rfbSetTranslateFunction: client bits per pixel not 8, 16 or 32 24/03/2021 11:09:19 Client 192.168.0.6 gone |
[링크 : https://github.com/LibVNC/libvncserver/blob/master/libvncserver/translate.c#L261]
+
2022.08.17
rfbRunEventLoop() 에 인자를 TRUE를 주고(background 실행하도록)
main loop 에서 rfbProcessEvents() 을 통해서 처리하게 하다 보니(websocket 처리를 위해)
양쪽에서 fd를 읽어 가려하다보니 데이터가 정상적으로 가져가지지 않아 죽는 것으로 판명됨.