I am trying to setup two eventlet servers that listen concurrently on different ports.
The first server in the code below is for a SocketIO implementation and the second is for an external connection. Both function separately but not at the same time.
if __name__ == '__main__':
eventlet.wsgi.server(eventlet.listen(('0.0.0.0', 4000)), app)
s = eventlet.listen(('0.0.0.0', 6000))
pool = eventlet.GreenPool(5)
while True:
c, address = s.accept()
pool.spawn_n(function, c)