<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Graceful Shutdown on PlumePHP</title><link>https://plumephp.com/tags/graceful-shutdown/</link><description>Recent content in Graceful Shutdown on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Fri, 18 Apr 2025 08:42:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/graceful-shutdown/index.xml" rel="self" type="application/rss+xml"/><item><title>Go HTTP 服务优雅关闭入门：停止接新请求，等旧请求收尾</title><link>https://plumephp.com/go-http-server-shutdown-drain-2025/</link><pubDate>Fri, 18 Apr 2025 08:42:00 +0800</pubDate><guid>https://plumephp.com/go-http-server-shutdown-drain-2025/</guid><description>&lt;p&gt;HTTP 服务发布或重启时，如果直接杀进程，正在处理的请求可能被中断，用户看到连接错误，后台写入也可能只完成一半。Go 的 &lt;code&gt;http.Server.Shutdown&lt;/code&gt; 可以帮助服务优雅关闭：停止接收新连接，等待已有请求完成，直到超时。&lt;/p&gt;</description></item></channel></rss>