Why doesn't a request with an infinite loop get killed by ColdFusion request timeout?

前端 未结 3 836
日久生厌
日久生厌 2020-12-18 04:44

First, I set Timeout Requests after (seconds) to 20 in CF Admin.

Then I run a cfm with a line like while(true);

The page will run w

3条回答
  •  佛祖请我去吃肉
    2020-12-18 05:34

    I'm finding the same thing as Henry. Here's my test code:

    Before thread
    After thread

    My request timeout is set to 20sec in CFAdmin, and this thread has now been running for 15min. That said, a thread is not "a request" so am not sure I would expect it to respect the request timeout. There's nothing documented that I can find that suggests it should respect the request timeout. That said... having some way of killing a thread would be "handy".

    I guess this is only an "answer" in the context that I don't think your expectations are correct in that you expect it to respect the request timeout.

提交回复
热议问题