change error to ECONNRESET.

This commit is contained in:
Shuduo Sang 2020-07-05 18:30:17 +08:00
parent 15e7b0d688
commit 10145efdd3
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ int tSystem(const char * cmd)
ssize_t taos_read_random_fail(int fd, void *buf, size_t count)
{
if (rand() % RANDOM_NETWORK_FAIL_FACTOR == 0) {
errno = EINTR;
errno = ECONNRESET;
return -1;
}