title: how to receive a socket message with an empty data?
body: <p>i have a socket client and a socket server.</p>
  
  <p>(the server is in python, and is synchroneous.)</p>
  
  <p>sometimes the clients send an empty string. i'm required to identify this situation, and return a response.  </p>
  
  <p>with this code, the server just keeps on waiting, and the client's don't get anything in return, unless it sends something mroe "fat" ;)</p>
  
  <p>how can i capture the empty message? is it at all possible?</p>
  
  <p>that's my server code:</p>
  
  <pre><code>import SocketServer
  
  def multi_threaded_socket_server():
  
      class MyRequestHandler(SocketServer.BaseRequestHandler):
          def handle(self):
              while True:
                  print 'waiting for client calls...'
                  received = self.request.recv( PACKET_SIZE )
                  (handle request... )
  </code></pre>