OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Python [Errno 98] Address already in use

  • Thread starter Thread starter skylerl
  • Start date Start date
S

skylerl

Guest
In my Python socket program, I sometimes need to interrupt it with Ctrl-C. When I do this, it does close the connection using socket.close().

However, when I try to reopen it I have to wait what seems like a minute before I can connect again. How does one correctly close a socket? Or is this intended?
<p>In my Python socket program, I sometimes need to interrupt it with <kbd>Ctrl-C</kbd>. When I do this, it does close the connection using <code>socket.close()</code>.</p>

<p>However, when I try to reopen it I have to wait what seems like a minute before I can connect again. How does one correctly close a socket? Or is this intended?</p>
 

Latest posts

Top