title: Python gevent-socketio server error on client connection
body: <p>I've created a <code>wsgi</code> server using the following code.
  But when a client connects to it I am getting some errors and the connection fails.</p>
  
  <p><strong>code:</strong></p>
  
  <pre><code>#! /usr/bin/env python
  
  import gevent.monkey
  gevent.monkey.patch_all()
  
  from socketio.server import SocketIOServer
  
  class Application(object):
      def __init__(self):
          print "Hiii"
  
      def __call__(self, environ, start_response):
          print "Hello"
  
  def main():
      server = SocketIOServer(('127.0.0.1',1234), Application(), namespace = "", policy_server=False)
      server.serve_forever()
  
  if __name__ ==  '__main__':
      main()
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.7/gevent/pywsgi.py", line 449, in handle_one_response
      self.run_application()
    File "/usr/lib/pymodules/python2.7/gevent/pywsgi.py", line 436, in run_application
      self.process_result()
    File "/usr/lib/pymodules/python2.7/gevent/pywsgi.py", line 425, in process_result
      for data in self.result:
  TypeError: 'NoneType' object is not iterable
  </code></pre>