From 0929b7a4e432b8764c8bc7c7dad1e5eaeb921fce Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Sun, 19 Oct 2014 11:16:01 +0200 Subject: [PATCH] increase default recv timeout to 30 seconds --- phpdbg_cmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c index 77a0cacc198..f4c2e172f9e 100644 --- a/phpdbg_cmd.c +++ b/phpdbg_cmd.c @@ -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;