开发者

Hiawatha CGI: writing to the client as soon as a command gets executed

I have a CGI script run by Hiawatha web server that needs to

  1. return some data to the client,
  2. do some system work (may take 20-30 seconds)
  3. and then return yet more data.
  4. 开发者_如何学编程

So far I haven't been able to achieve this result: the script doesn't write data as the commands get executed, rather, it writes everything in a single shot when its execution ends. Is it even possible to achieve with Hiawatha what I described above? Thank you.


I figured it out: you need to set the WaitForCGI = yes option in the config file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜