1 Star 0 Fork 0

kuoyihp/nginx-lua-module-zh-wiki

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tcp-socket-connect-operation-issues.md 987 Bytes
一键复制 编辑 原始数据 按行查看 历史

TCP socket 连接操作遗留问题

tcpsock:connect方法,返回success但实际上连接故障,例如出现Connection Refused错误。

然而,后面尝试对cosocket对象的任何操作都将失败,并返回由失效连接操作所产生实际的错误状态消息。

这个问题是由于在Nginx的事件模型的局限性,似乎只影响Mac OS X系统。

返回目录

English source:

TCP socket connect operation issues

The tcpsock:connect method may indicate success despite connection failures such as with Connection Refused errors.

However, later attempts to manipulate the cosocket object will fail and return the actual error status message generated by the failed connect operation.

This issue is due to limitations in the Nginx event model and only appears to affect Mac OS X.

Back to TOC

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/qizhendong_admin/nginx-lua-module-zh-wiki.git
git@gitee.com:qizhendong_admin/nginx-lua-module-zh-wiki.git
qizhendong_admin
nginx-lua-module-zh-wiki
nginx-lua-module-zh-wiki
master

搜索帮助