Skip to content Skip to sidebar Skip to footer

'connection Aborted.', Error(99, 'cannot Assign Requested Address') Error In Python

I have checked, socket.error:[errno 99] cannot assign requested address and namespace in python Repeated POST request is causing error 'socket.error: (99, 'Cannot assign requested

Solution 1:

The reason that I was getting this issue was that, the number of ephemeral ports that are available by default in Linux are limited. Additionally, the ports are not readily made available once their earlier owner releases the control, because of the way TCP is designed to work. It waits for some time before allocating the port number to some other process.

So, what happens exactly is that, my Python script, tries to use all the available ports and goes on releasing them after use, but as per the TCP implementation, the port is not immediately available for use by some other process/ other request, and thus I see the error message.

More about this is available at my other question, and its responses on the Unix and Linux StackExachange forum: https://unix.stackexchange.com/questions/211647/how-safe-is-it-to-change-the-linux-ephemeral-port-range

Post a Comment for "'connection Aborted.', Error(99, 'cannot Assign Requested Address') Error In Python"