Handling long timeouts in turnilo server.
JFYI after exceeding the timeout, I still see the error "502 Bad Gateway". Perhaps there should be a more informative message.
Originally posted by @Laboltus in https://github.com/allegro/turnilo/pull/269#issuecomment-461078047
req.setTimeout has an optional callback, can we customize the error page there?
Tried it, but deeper in the stack in plywood-druid-requester I got exception and callback didn't fire. Sadly, I don't have reasonable environment to reproduce it.
The easiest way to reproduce timeouts or slow response is to use configurable proxy between Turnilo and Druid broker, e.g: https://github.com/h2non/toxy
Is timeout parameter supposed to work in turnilo 1.16.0? I use this version and nothing I do helps. After 60 sec an error message is displayed, even if druid is still working with the query in the background.