I try to use xbuf_frurl
to start a worker to do some post-processing.
The worker will finish the job without returning anything.
Thus, the original script can respond to client faster.
So, I try to set the timeout=0ms in xbuf_frurl, hoping that it can return immediately and do the rest of the code and return 200.
xbuf_frurl(&buf, "localhost", 80, HTTP_GET, "/postprocessing", 0, 0);
xbuf_ncat (reply, buf.ptr, buf.len);
But, it seems not to timeout immediately, since the buffer is not null.
Is there any better way to do so?