summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ereproxy_server.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/ereproxy_server.erl b/ereproxy_server.erl
index a6e9803..fbebe24 100644
--- a/ereproxy_server.erl
+++ b/ereproxy_server.erl
@@ -94,6 +94,8 @@ parse_header(MaxCache, Con = {TP, Sock}, OldData, CurrentLine, _RestData = <<>>)
parse_header(MaxCache - size(Data), Con, OldData, CurrentLine, Data);
{TP_Close, Sock} ->
connection_closed
+ after 5000 ->
+ connection_timeout
end;
% parse: end of header (-> no Host-directive found) (two versions: LF/CRLF)
@@ -133,4 +135,6 @@ pass_through(Cons, NumOpen) ->
1 -> ok
end,
?MODULE:pass_through(Cons, NumOpen-1)
+ after 5000 ->
+ connection_timeout
end.
contact: Jan Huwald // Impressum