I´m trying to chain a bunch of requests to a MongoDB server by utilizing Mojo::IOLoop->delay;
unfortunately the last Mango command (and only the last one) always returns the error "Premature connection close".
With MANGO_DEBUG=1 I can see that the last command gets written to the MongoDB connection and in the the mongod output I can also see that it is retrieved and executed.
But Mango never logs the response data.
Apparently it does not matter which command is used as the last one.
I don´t know if it´s a bug in Mango or if I´m lacking some vital understanding how the event loop works...
Thx in advance for any hints and suggestions!
- Heiko