79137077

Date: 2024-10-29 11:53:13
Score: 1
Natty:
Report link

I would say that option A is a better solution because it is more efficient as it doesn't repeatedly create and destroy socket resources, reduces system calls and overhead. Creating new sockets frequently (option B) can lead to resource leaks if proper cleanup isn't performed, which can be pain in the *ss to fix if things go wrong.

Furthermore, with option B you might encounter "Address already in use" errors if the previous socket wasn't properly cleaned up. So I would stay away from option B.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Vile