Yes, it is intended. Here you can read detailed explanation. It is possible to override this behavior by setting SO_REUSEADDR option on a socket. For example:
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
More Related Contents:
- Python server “Only one usage of each socket address is normally permitted”
- Can Python select what network adapter when opening a socket?
- Python socket.error: [Errno 111] Connection refused
- How to close a socket left open by a killed program?
- How to terminate a python subprocess launched with shell=True
- Python socket not receiving without sending
- Execute Python script via crontab
- TypeError: a bytes-like object is required, not ‘str’
- Getting MAC Address
- Python pysftp get_r from Linux works fine on Linux but not on Windows
- On localhost, how do I pick a free port number?
- fcntl substitute on Windows
- How to get PID by process name?
- How to make Python script run as service?
- How to update-alternatives to Python 3 without breaking apt?
- How to connect to a remote Windows machine to execute commands using python?
- Why am I getting the error “connection refused” in Python? (Sockets)
- Trouble installing scipy in virtualenv on a amazon ec2 linux micro instance
- How to open a file with the standard application?
- Python script to list users and groups
- Tkinter.PhotoImage doesn’t not support png image
- How to make python window run as “Always On Top”?
- Get local network interface addresses using only proc?
- Environment Variables when script run by cron
- Making moves w/ websockets and python / django ( / twisted? )
- What is “backlog” in TCP connections?
- Could not find or load the Qt platform plugin “xcb”
- Python multiprocessing memory usage
- How to move .conda from one folder to another at the moment of creating the environment
- Python – Trap all signals