EXTERNAL: OSError: [Errno 48] Address already in use

Marko Rauhamaa marko at pacujo.net
Thu Jun 28 16:27:38 EDT 2018


Dan Stromberg <drsalists at gmail.com>:
> On Wed, Jun 27, 2018 at 10:31 PM, Marko Rauhamaa <marko at pacujo.net> wrote:
>> Dan Stromberg <drsalists at gmail.com>:
>> >> > The problem can be solved by turning on the SO_REUSEADDR flag of
>> >> > the socket.
>> > BTW, it's a security feature you're turning off. If you're on a
>> > multiuser box, it prevents a second user from stealing lingering
>> > connections from a first user on the same port.
>>
>> Can you provide a brief proof of concept?
>>
> https://stackoverflow.com/questions/19960475/problems-related-to-so-reuseaddr

I'm sorry but I couldn't find a working example behind the link. Could
you demonstrate the problem with a few lines of Python.


Marko



More information about the Python-list mailing list