diff options
Diffstat (limited to 'guide')
-rw-r--r-- | guide/listeners.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/guide/listeners.md b/guide/listeners.md index 48ec622..32fddde 100644 --- a/guide/listeners.md +++ b/guide/listeners.md @@ -118,15 +118,15 @@ Accepting connections on an existing socket If you want to accept connections on an existing socket, you can use the `socket` transport option, which should just be the relevant data returned -from the connect() function for the undelying socket library -(gen_tcp:connect(), ssl:connect()). accept() will be then be called on the -passed in socket. You should connect() the socket in {active, false} mode, as -well. +from the connect function for the transport or the underlying socket library +(`gen_tcp:connect`, `ssl:connect`). The accept function will then be +called on the passed in socket. You should connect the socket in +`{active, false}` mode, as well. Note, however, that because of a bug in SSL, you cannot change ownership of an SSL listen socket prior to R16. Ranch will catch the error thrown, but the owner of the SSL socket will remain as whatever process created the socket. -However, this will not affect accept() behaviour unless the owner process dies, +However, this will not affect accept behaviour unless the owner process dies, in which case the socket is closed. Therefore, to use this feature with SSL with an erlang release prior to R16, ensure that the SSL socket is opened in a persistant process. |