com php-src: increase default recv timeout to 30 seconds: phpdbg_cmd.c
| From: | Bob Weinand | Date: | Sun, 19 Oct 2014 09:16:01 +0000 |
| Subject: | com php-src: increase default recv timeout to 30 seconds: phpdbg_cmd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82539@lists.php.net to get a copy of this message | ||
Commit: 0929b7a4e432b8764c8bc7c7dad1e5eaeb921fce
Author: Anatol Belski <ab@php.net> Sun, 19 Oct 2014 11:16:01 +0200
Parents: 2be895e4fe97f42ae75ea266517e21576892d3c5
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0929b7a4e432b8764c8bc7c7dad1e5eaeb921fce
Log:
increase default recv timeout to 30 seconds
Changed paths:
M phpdbg_cmd.c
Diff:
diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c
index 77a0cac..f4c2e17 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;