aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch_sup.erl
diff options
context:
space:
mode:
authorjuhlig <[email protected]>2019-05-13 10:15:16 +0200
committerLoïc Hoguin <[email protected]>2019-05-13 10:32:33 +0200
commita4af58b2e6313e3b422cf35aef370241aab20661 (patch)
tree6c50eaf301c93e30aa147651d9d8d9641845b23d /src/ranch_sup.erl
parent6d8b249e54c849948f6d4cdb021cb44340ec289f (diff)
downloadranch-a4af58b2e6313e3b422cf35aef370241aab20661.tar.gz
ranch-a4af58b2e6313e3b422cf35aef370241aab20661.tar.bz2
ranch-a4af58b2e6313e3b422cf35aef370241aab20661.zip
Fix premature ranch_server:set_addr
With num_listen_sockets>1 and SO_REUSEPORT disabled, the startup of ranch_acceptors_sup fails because extra sockets cannot be created. Because ranch_server:set_addr is called right after the creation of the first socket succeeded, ranch:get_port etc may still return an ok tuple until it notices that the listener is in fact down.
Diffstat (limited to 'src/ranch_sup.erl')
0 files changed, 0 insertions, 0 deletions