<div dir="ltr">Could you provide some sample code so I could play with it?<div><br></div><div>Also, how are you implementing the delayed server? What event loop are you using? Are you trying to do fully non-blocking asynchronous or are you just having a delayed response? There is a big difference.</div><div><br></div><div>The problem with delayed responses is that there are several options and in between them you need to understand how they work, what they do, event loop, the effect *on* your code, the effect *of* your code etc. That's why it's a pretty advanced feature that is usually unnecessary and the usage of it should probably be very well contained.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 8, 2016 at 5:55 PM, Andrew Beverley <span dir="ltr"><<a href="mailto:andy@andybev.com" target="_blank">andy@andybev.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sat, 2016-01-09 at 00:09 +1030, David H wrote:<br>
> I'm not sure if there is a way (or if this even makes sense) to fork<br>
> out each request so the dancer site isn't just sitting there waiting<br>
> for the last thing to complete.<br>
<br>
</span>Really stupid question, but I assume you do have Starman configured for<br>
multiple processes accepting requests on the server-side? Otherwise you<br>
would of course see the behaviour you describe.<br>
<span class=""><br>
> I tried using the Delayed responses (Async/Streaming) listed here:<br>
<br>
</span>I would expect that. Delayed is still single-threaded (?), it just<br>
allows responses to be sent part way through processing request (I<br>
think, I've not looked at it in detail).<br>
<br>
I certainly would have thought that Starman or other multi-threaded<br>
server is the way to go.<br>
<br>
I do have some resource-intensive processes in one of my apps (that<br>
produce data for the same webpage via a separate request), and I've<br>
never noticed a problem. I've never looked at it in detail though. I'm<br>
using fast-cgi in Apache.<br>
<br>
Andy<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" rel="noreferrer" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
</div></div></blockquote></div><br></div>