We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
使用socket.core.tcp以非阻塞方式去读当前socket中的数据时,会返回nil 在源码 https://github.com/dualface/v3quick/blob/v3/external/lua/luasocket/buffer.c#L210#L221处,是不是要对IO_TIMEOUT进行判断, 比如:
if (err == IO_CLOSED) { if (total > 0) return IO_DONE; else return IO_CLOSED; } else { if (err == IO_TIMEOUT && total > 0) err = IO_DONE; return err; }
如果理解有误请见谅。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
使用socket.core.tcp以非阻塞方式去读当前socket中的数据时,会返回nil
在源码
https://github.com/dualface/v3quick/blob/v3/external/lua/luasocket/buffer.c#L210#L221处,是不是要对IO_TIMEOUT进行判断, 比如:
如果理解有误请见谅。
The text was updated successfully, but these errors were encountered: