Commit 5a1867d
Fix critical issues in server process management
Critical fixes:
1. Fix PID parameter passing in stop_server/send_term_signal
- Previously stop_server(pid) received parameter but used instance variable
- Now consistently passes pid parameter through the call chain
- Prevents potential bugs if pid values diverge
2. Fix HTTP timeout in readiness polling loop
- Cap individual check timeout at 2 seconds max
- Prevents 5s timeouts from blocking the 0.1s polling loop
- Maintains responsiveness while supporting slow CI via configuration
3. Fix URI path handling edge case
- Ensure GET path defaults to '/' if uri.path is empty
- Prevents invalid HTTP requests with empty path
Documentation improvements:
- Document that @server_pgid may be nil in edge cases
- Clarify that 3xx redirects are considered valid "ready" state
- Add comments explaining timeout behavior in polling context
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 5db98c3 commit 5a1867d
1 file changed
+13
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
136 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
137 | 141 | | |
138 | 142 | | |
139 | 143 | | |
140 | | - | |
| 144 | + | |
| 145 | + | |
141 | 146 | | |
142 | 147 | | |
143 | 148 | | |
| 149 | + | |
144 | 150 | | |
145 | 151 | | |
146 | 152 | | |
| |||
151 | 157 | | |
152 | 158 | | |
153 | 159 | | |
154 | | - | |
| 160 | + | |
155 | 161 | | |
156 | 162 | | |
157 | 163 | | |
158 | 164 | | |
159 | 165 | | |
160 | | - | |
161 | | - | |
| 166 | + | |
| 167 | + | |
162 | 168 | | |
163 | 169 | | |
164 | | - | |
| 170 | + | |
165 | 171 | | |
166 | 172 | | |
167 | 173 | | |
168 | | - | |
| 174 | + | |
169 | 175 | | |
170 | 176 | | |
171 | 177 | | |
| |||
0 commit comments