提交 10145efd 编写于 作者: S Shuduo Sang

change error to ECONNRESET.

上级 15e7b0d6
...@@ -277,7 +277,7 @@ int tSystem(const char * cmd) ...@@ -277,7 +277,7 @@ int tSystem(const char * cmd)
ssize_t taos_read_random_fail(int fd, void *buf, size_t count) ssize_t taos_read_random_fail(int fd, void *buf, size_t count)
{ {
if (rand() % RANDOM_NETWORK_FAIL_FACTOR == 0) { if (rand() % RANDOM_NETWORK_FAIL_FACTOR == 0) {
errno = EINTR; errno = ECONNRESET;
return -1; return -1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册