From d440a2c1d26e4f0770a66279de151806b1ad5ac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 17 Aug 2015 18:18:07 +0200 Subject: Don't pass Ranch-specific options down to transports Should fix Dialyzer issues. The options are now also documented in the Ranch module, and there's new ranch:opt(), ranch_tcp:opt() and ranch_ssl:opt() for use in third party code. --- src/ranch_tcp.erl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/ranch_tcp.erl') diff --git a/src/ranch_tcp.erl b/src/ranch_tcp.erl index e3bcf81..51b10ba 100644 --- a/src/ranch_tcp.erl +++ b/src/ranch_tcp.erl @@ -35,7 +35,7 @@ -export([shutdown/2]). -export([close/1]). --type opts() :: [{backlog, non_neg_integer()} +-type opt() :: {backlog, non_neg_integer()} | {ip, inet:ip_address()} | {linger, {boolean(), non_neg_integer()}} | {nodelay, boolean()} @@ -43,7 +43,10 @@ | {raw, non_neg_integer(), non_neg_integer(), non_neg_integer() | binary()} | {send_timeout, timeout()} - | {send_timeout_close, boolean()}]. + | {send_timeout_close, boolean()}. +-export_type([opt/0]). + +-type opts() :: [opt()]. -export_type([opts/0]). name() -> tcp. -- cgit v1.2.3