You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2020/07/15 07:18:27 UTC
[celix] branch master updated: Don't wait infinitely for server
response, might never come and prevents closing of program
This is an automated email from the ASF dual-hosted git repository.
pnoltes pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to refs/heads/master by this push:
new deda9bd Don't wait infinitely for server response, might never come and prevents closing of program
new e6fe5ad Merge pull request #269 from Oipo/bugfix/psws_infinite_wait
deda9bd is described below
commit deda9bd86ace5e5f545a5823589a9c8c6bb6cb14
Author: Michael de Lang <ki...@gmail.com>
AuthorDate: Tue Jul 14 16:45:22 2020 +0200
Don't wait infinitely for server response, might never come and prevents closing of program
---
bundles/http_admin/civetweb/src/civetweb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bundles/http_admin/civetweb/src/civetweb.c b/bundles/http_admin/civetweb/src/civetweb.c
index a676036..ff56ca5 100644
--- a/bundles/http_admin/civetweb/src/civetweb.c
+++ b/bundles/http_admin/civetweb/src/civetweb.c
@@ -10522,7 +10522,7 @@ read_message(FILE *fp,
/* value of request_timeout is in seconds, config in milliseconds */
request_timeout = atof(conn->dom_ctx->config[REQUEST_TIMEOUT]) / 1000.0;
} else {
- request_timeout = -1.0;
+ request_timeout = 30.0;
}
if (conn->handled_requests > 0) {
if (conn->dom_ctx->config[KEEP_ALIVE_TIMEOUT]) {