Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 987 Bytes

tcp-socket-connect-operation-issues.md

File metadata and controls

22 lines (13 loc) · 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