aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch_ssl.erl
diff options
context:
space:
mode:
authorFred Hebert <[email protected]>2013-01-09 14:39:31 -0500
committerFred Hebert <[email protected]>2013-01-15 11:34:52 -0500
commitc7bf6d2e4d4ae559ffd1ca429cbe605f710e7f0c (patch)
tree357f7d1a135a7bdbb1b355191897cebc040a5b82 /src/ranch_ssl.erl
parent9fd9294a13375a56c42b4b77225bbe317ecf0b4d (diff)
downloadranch-c7bf6d2e4d4ae559ffd1ca429cbe605f710e7f0c.tar.gz
ranch-c7bf6d2e4d4ae559ffd1ca429cbe605f710e7f0c.tar.bz2
ranch-c7bf6d2e4d4ae559ffd1ca429cbe605f710e7f0c.zip
Allow raw socket options for TCP and SSL
This patch lets the user set and use raw socket options as described in inet:setopts/2 documentation. The raw options can be useful to use TCP features that are platform- specific and not supported in inet in general, such as TCP_DEFER_ACCEPT or TCP_LINGER2 in linux stacks, for example.
Diffstat (limited to 'src/ranch_ssl.erl')
-rw-r--r--src/ranch_ssl.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ranch_ssl.erl b/src/ranch_ssl.erl
index 734de21..d880cc8 100644
--- a/src/ranch_ssl.erl
+++ b/src/ranch_ssl.erl
@@ -95,7 +95,7 @@ listen(Opts) ->
%% first argument.
ssl:listen(0, ranch:filter_options(Opts2,
[backlog, cacertfile, certfile, ciphers, ip,
- keyfile, nodelay, password, port, verify],
+ keyfile, nodelay, password, port, raw, verify],
[binary, {active, false}, {packet, raw},
{reuseaddr, true}, {nodelay, true}])).