[vlc-commits] httpd: turn the hardcoded default timeout into a CLOCK_FREQ based value
Steve Lhomme
git at videolan.org
Sat May 5 18:10:37 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Sat May 5 10:20:49 2018 +0200| [97df12a60944eed5579c18536cd3962438771228] | committer: Rémi Denis-Courmont
httpd: turn the hardcoded default timeout into a CLOCK_FREQ based value
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=97df12a60944eed5579c18536cd3962438771228
---
src/network/httpd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/network/httpd.c b/src/network/httpd.c
index a22d9208cc..6cf7a710dc 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -1193,7 +1193,7 @@ static void httpd_ClientInit(httpd_client_t *cl, mtime_t now)
{
cl->i_state = HTTPD_CLIENT_RECEIVING;
cl->i_activity_date = now;
- cl->i_activity_timeout = INT64_C(10000000);
+ cl->i_activity_timeout = CLOCK_FREQ*10;
cl->i_buffer_size = HTTPD_CL_BUFSIZE;
cl->i_buffer = 0;
cl->p_buffer = xmalloc(cl->i_buffer_size);
More information about the vlc-commits
mailing list