Commit a31e36e
committed
Fix: Set isClosing flag in closeGracefully method as documented
The FIXME comment noted that the javadoc claimed to use the isClosing
flag but it wasn't actually being set. This commit:
- Adds isClosing = true at the start of closeGracefully()
- Updates the javadoc to accurately reflect the behavior
- Removes the outdated FIXME comment
This ensures new connections are properly rejected during graceful shutdown.1 parent d14a423 commit a31e36e
File tree
1 file changed
+3
-6
lines changed- shenyu-plugin/shenyu-plugin-mcp-server/src/main/java/org/apache/shenyu/plugin/mcp/server/transport
1 file changed
+3
-6
lines changedLines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | 196 | | |
201 | | - | |
202 | | - | |
| 197 | + | |
| 198 | + | |
203 | 199 | | |
204 | 200 | | |
205 | 201 | | |
206 | 202 | | |
207 | 203 | | |
| 204 | + | |
208 | 205 | | |
209 | 206 | | |
210 | 207 | | |
| |||
0 commit comments