1
0
mirror of https://github.com/php/php-src.git synced 2026-03-31 04:32:19 +02:00

increase default recv timeout to 30 seconds

This commit is contained in:
Anatol Belski
2014-10-19 11:16:01 +02:00
parent 2be895e4fe
commit 0929b7a4e4

View File

@@ -862,7 +862,8 @@ readline:
}
}
len += bytes;
} while ((bytes = phpdbg_mixed_read(PHPDBG_G(io)[PHPDBG_STDIN].fd, buf + len, PHPDBG_MAX_CMD - len, 10000)) > 0 || (errno == EINTR && bytes < 0));
/* XXX export the timeout through INI??*/
} while ((bytes = phpdbg_mixed_read(PHPDBG_G(io)[PHPDBG_STDIN].fd, buf + len, PHPDBG_MAX_CMD - len, 30000)) > 0 || (errno == EINTR && bytes < 0));
if (bytes <= 0) {
goto disconnect;