Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Tcp 操作系统错误的原因是什么:消息太长_Tcp_Grpc_Grpc Node_Oserror - Fatal编程技术网

Tcp 操作系统错误的原因是什么:消息太长

Tcp 操作系统错误的原因是什么:消息太长,tcp,grpc,grpc-node,oserror,Tcp,Grpc,Grpc Node,Oserror,我们有一个客户端和服务器与grpc相互通信。以前,服务器运行在Windows server上,客户端运行在Linux或MacOS上。在我们将服务器从Windows server迁移到docker容器之前,一切都可以正常工作 然后,当我们从客户端向服务器发送大量请求时,我们观察到一些奇怪的tcp中断 然后我们深入到grpc领域,使用grpc\u VERBOSITY=info和grpc\u TRACE=tcp运行我们的客户机和服务器。然后我们发现断开连接是由服务器端造成的,错误消息如下: tcp_c

我们有一个客户端和服务器与grpc相互通信。以前,服务器运行在Windows server上,客户端运行在Linux或MacOS上。在我们将服务器从Windows server迁移到docker容器之前,一切都可以正常工作

然后,当我们从客户端向服务器发送大量请求时,我们观察到一些奇怪的tcp中断

然后我们深入到grpc领域,使用
grpc\u VERBOSITY=info
grpc\u TRACE=tcp
运行我们的客户机和服务器。然后我们发现断开连接是由服务器端造成的,错误消息如下:

tcp_custom.cc:218] write complete on 029FCC20: error={"created":"@1594210168.896000000","description":"TCP Write failed","file":"d:\a\grpc-node\grpc-node\packages\grpc-native-core\deps\grpc\src\core\lib\iomgr\tcp_uv.cc","file_line":72,"grpc_status":14,"os_error":"message too long"}
所以我的问题是
os\u错误:消息太长
到底意味着什么?我下一步要调查什么


字符串“message too long”是错误代码
UV\u EMSGSIZE
的错误消息,它对应于Linux错误代码
EMSGSIZE
。这似乎通常意味着gRPC正试图写入一个对套接字来说太大的缓冲区,但我不确定到底是什么触发了它。

谢谢您的回答!那么你知道在哪里可以找到套接字消息大小的限制吗?我真的不知道。可能会有帮助,或者至少是一个很好的起点。在您将错误指向
EMSGSIZE
之后,我看到了这个问题。我还没有找到根本原因,但至少我还有一件事要调查,非常感谢!在您将错误指向
EMSGSIZE
之后,我看到了这个问题。我还没有找到根本原因,但至少我还有一件事要调查,非常感谢!