From bf2b8181ccd5f89a8355087412cf8db08f3b32ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 15 May 2013 14:47:37 +0200 Subject: Add two missing terminate reasons to http/loop handlers specs --- src/cowboy_http_handler.erl | 2 ++ src/cowboy_loop_handler.erl | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src') diff --git a/src/cowboy_http_handler.erl b/src/cowboy_http_handler.erl index 0393153..3ad8f88 100644 --- a/src/cowboy_http_handler.erl +++ b/src/cowboy_http_handler.erl @@ -35,6 +35,8 @@ -type state() :: any(). -type terminate_reason() :: {normal, shutdown} | {normal, timeout} %% Only occurs in loop handlers. + | {error, closed} %% Only occurs in loop handlers. + | {error, overflow} %% Only occurs in loop handlers. | {error, atom()}. -callback init({atom(), http}, Req, opts()) diff --git a/src/cowboy_loop_handler.erl b/src/cowboy_loop_handler.erl index f8d008f..af49e57 100644 --- a/src/cowboy_loop_handler.erl +++ b/src/cowboy_loop_handler.erl @@ -41,6 +41,8 @@ -type state() :: any(). -type terminate_reason() :: {normal, shutdown} | {normal, timeout} + | {error, closed} + | {error, overflow} | {error, atom()}. -callback init({atom(), http}, Req, opts()) -- cgit v1.2.3