Oslo.service is binding to same port when we provide a port range
as eventlet is internally setting SO_REUSEPORT flag (starting from
eventlet version v0.20). And there is a flag (reuse_port)
introduced in v0.22 to give control to user to avoid SO_REUSEPORT.
In this patch, first we try passing reuse_port=False, if this fails
then directly open socket and listen instead of eventlist.listen.
Reviewed: https:/ /review. openstack. org/627952 /git.openstack. org/cgit/ openstack/ oslo.service/ commit/ ?id=811650783d3 2accd2b49f907dd c520955146962c
Committed: https:/
Submitter: Zuul
Branch: master
commit 811650783d32acc d2b49f907ddc520 955146962c
Author: venkata anil <email address hidden>
Date: Wed Jan 2 05:11:12 2019 -0500
Avoid eventlet_backdoor listing on same port
Oslo.service is binding to same port when we provide a port range
as eventlet is internally setting SO_REUSEPORT flag (starting from
eventlet version v0.20). And there is a flag (reuse_port)
introduced in v0.22 to give control to user to avoid SO_REUSEPORT.
In this patch, first we try passing reuse_port=False, if this fails
then directly open socket and listen instead of eventlist.listen.
Closes-Bug: #1810280 99c76fe12785b0b f0e7a58e121
Change-Id: Idc842acc7e4301