In the previous commit i forgot to set the poll_timeout to -1,

causing the http threads to do busy waiting around the socket...

Fix the mistake, sorry for the inconvenience!



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48074 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Luigi Rizzo 19 years ago
parent 7a6914a126
commit da80478d94

@ -166,6 +166,7 @@ static struct server_args http_desc = {
.accept_fd = -1, .accept_fd = -1,
.master = AST_PTHREADT_NULL, .master = AST_PTHREADT_NULL,
.is_ssl = 0, .is_ssl = 0,
.poll_timeout = -1,
.name = "http server", .name = "http server",
.accept_fn = server_root, .accept_fn = server_root,
.worker_fn = httpd_helper_thread, .worker_fn = httpd_helper_thread,
@ -175,6 +176,7 @@ static struct server_args https_desc = {
.accept_fd = -1, .accept_fd = -1,
.master = AST_PTHREADT_NULL, .master = AST_PTHREADT_NULL,
.is_ssl = 1, .is_ssl = 1,
.poll_timeout = -1,
.name = "https server", .name = "https server",
.accept_fn = server_root, .accept_fn = server_root,
.worker_fn = httpd_helper_thread, .worker_fn = httpd_helper_thread,

Loading…
Cancel
Save