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

sock_set_nonblocking函数中block好像反了 #613

Open
source00 opened this issue Apr 9, 2024 · 2 comments
Open

sock_set_nonblocking函数中block好像反了 #613

source00 opened this issue Apr 9, 2024 · 2 comments

Comments

@source00
Copy link

source00 commented Apr 9, 2024

https://github.com/LibVNC/libvncserver/blob/master/src/common/sockets.c

rfbBool sock_set_nonblocking(rfbSocket sock, rfbBool non_blocking, void (*log)(const char *format, ...))
{
#ifdef WIN32
  unsigned long block = non_blocking ? 0 : 1;
  if(ioctlsocket(sock, FIONBIO, &block) == SOCKET_ERROR) {

Describe the bug

期望异步通信,但ioctlsocket中block是0,实际为阻塞通信

@source00 source00 added the bug label Apr 9, 2024
@bk138
Copy link
Member

bk138 commented Apr 9, 2024

Come on, please try to use a translation service.

@source00
Copy link
Author

source00 commented Apr 9, 2024

Come on, please try to use a translation service.

Expected non blocking communication, but block in ioctlsocket is 0, actual blocking communication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants