4 Feb 2009 04:48
[PATCH] make ssl acceptor not exit frequently for timeout
Hi, I guess the timeout argument is given to ssl:transport_accept by mistake, so I make a patch to prevent ssl acceptor exiting frequently for timeout. This patch is made against yaws-1.77 but also can be applied to yaws-1.79 successfully.
From 92ce9b3d9a46bc6b30108992795bfc067dde3263 Mon Sep 17 00:00:00 2001
From: Liu Yubao <yubao.liu <at> gmail.com>
Date: Sat, 31 Jan 2009 23:17:29 +0800
Subject: [PATCH] make ssl acceptor not exit frequently for timeout
---
src/yaws_server.erl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/yaws_server.erl b/src/yaws_server.erl
index 80e939d..1baebde 100644
--- a/src/yaws_server.erl
+++ b/src/yaws_server.erl
<at> <at> -730,7 +730,7 <at> <at> do_accept(GS) when GS#gs.ssl == nossl ->
?Debug("wait in accept ... ~n",[]),
gen_tcp:accept(GS#gs.l);
do_accept(GS) when GS#gs.ssl == ssl ->
- ssl:transport_accept(GS#gs.l,10000).
+ ssl:transport_accept(GS#gs.l).
(Continue reading)
RSS Feed