<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-family: 'Helvetica Neue', Helvetica, sans-serif;" class="">Sorry if this is not the place to ask this or if this has been asked before (google hasn't been helpful), but I'm unsure of how to proceed with this problem.</div><div style="font-family: 'Helvetica Neue', Helvetica, sans-serif;" class=""><br class=""></div><div style="font-family: 'Helvetica Neue', Helvetica, sans-serif;" class="">I am developing a body filter module that processes html and has to do a process in the middle of sending a response that can take upwards of a couple seconds. So for example, the first half of the HTML gets sent immediately, a process happens and eventually finishes, then second half gets sent (the contents of the second half being dependent on the results of the process).  How to I get a body filter to "wait" for a bit and then continue sometime later? The signal/flag/whatever to continue could come from a timer event or elsewhere. I'm looking for a non-blocking solution obviously.</div><div style="font-family: 'Helvetica Neue', Helvetica, sans-serif;" class=""><br class=""></div><div style="font-family: 'Helvetica Neue', Helvetica, sans-serif;" class="">I'm using nginx as a proxy if that makes any difference so the HTML doesn't originate on this server. And yes, it's a bit of a weird use case.</div><div style="font-family: 'Helvetica Neue', Helvetica, sans-serif;" class=""><br class=""></div><div style="font-family: 'Helvetica Neue', Helvetica, sans-serif;" class="">Thanks,</div><div style="font-family: 'Helvetica Neue', Helvetica, sans-serif;" class="">Tod.</div></body></html>