aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-05-15 14:47:37 +0200
committerLoïc Hoguin <[email protected]>2013-05-15 14:47:37 +0200
commitbf2b8181ccd5f89a8355087412cf8db08f3b32ce (patch)
tree57e7ae1a9eb2588c32ebdd56196ffff5d0951d21 /src
parent517a31086b5309f09b414df2d1a58a95474e4e43 (diff)
downloadcowboy-bf2b8181ccd5f89a8355087412cf8db08f3b32ce.tar.gz
cowboy-bf2b8181ccd5f89a8355087412cf8db08f3b32ce.tar.bz2
cowboy-bf2b8181ccd5f89a8355087412cf8db08f3b32ce.zip
Add two missing terminate reasons to http/loop handlers specs
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_http_handler.erl2
-rw-r--r--src/cowboy_loop_handler.erl2
2 files changed, 4 insertions, 0 deletions
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())