title: socket call recvfrom appears to be stuck in infinite loop
body: <p>I've inherited a piece of code from one of my colleagues that I need to tidy up and turn into some in-house IP.</p>
  
  <p>My problem is reading the socket. I have debugged the code and I can see that the socket is opened correctly. Everything runs fine until the interpreter runs the following line of code</p>
  
  <pre><code>    data, addr = any_struct.recv_socket.recvfrom(2048)
  </code></pre>
  
  <p>The interpreter goes nuts and I have to kill python through the task manager to stop it. I've tried using a debugger to step through the code, but it can't/won't step into the recvform call.</p>
  
  <p>I'm in the early stages of turning this code into something worthwhile. Any suggestions as to how I can debug/fix this problem? I'm sure I'm going to kick myself when I find out what the problem is, but no lightbulbs at the moment.</p>
  
  <p>I have used sockets before, but that was quite some time ago in C, not even C++</p>