swooletw / laravel-swoole

High performance HTTP server based on Swoole. Speed up your Laravel or Lumen applications.
MIT License
4.03k stars 388 forks source link

Swoole Kill Process Without Waiting For Http Call #533

Closed wlzch closed 1 year ago

wlzch commented 1 year ago

Make sure you read Issues Guideline and answer these questions before submitting your issue. Thanks! (Any non-English issues will be closed immediately.)

  1. Please provide your PHP and Swoole version. (php -v and php --ri swoole) php v7.3 & swoole v4.8.8

  2. Please provide your Laravel/Lumen version. lumen v8

  3. Which release version of this package are you using? 2.11

  4. What did you do? If possible, provide a recipe for reproducing the error. We have an API that sometimes can run > 30s while nginx timeout is set to 30s. In the middle of this API, there is a Http Client call to other services. If before reaching this Http Client, the nginx already timed out then the process is suddenly killed without waiting for the call to finish.

  5. What did you expect to see? Swoole will kill the process only after it is finished.

  6. What did you see instead? Swoole kill the process immediately