Socket shutdown and rebind - How to avoid long wait?

后端 未结 1 642
抹茶落季
抹茶落季 2021-01-06 15:11

I\'m working with socket in python, and being in development stage I need to kill and restart my program frequently.

The issue is that once killed my python script,

相关标签:
1条回答
  • 2021-01-06 15:35

    I'm not sure how to do it in Python, but you want to set the SO_REUSEADDR socket option.

    0 讨论(0)
提交回复
热议问题