Commit 2e8d74e
committed
Keep active curl handles out of in-transfer state callbacks
Copilot comment 4114543078: sample listeners in examples/cpp/SampleCpp/DebugCallback.cpp:79-86 and examples/cpp/MacProxy/HttpEventListener.cpp:38-45 set options on non-null handles. OnSending on curl 7.80+ now passes null while OnConnecting retains its pre-transfer handle; legacy timing and handle access stay unchanged.
Files changed: lib/http/HttpClient_Curl.hpp, lib/include/public/IHttpClient.hpp, tests/unittests/HttpClientCurlTests.cpp. Document callback handle availability and assert both runtime paths in loopback tests.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5fa346e8-a5c8-4324-8144-a4a867cb146e1 parent c0baa83 commit 2e8d74e
3 files changed
Lines changed: 13 additions & 3 deletions
File tree
- lib
- http
- include/public
- tests/unittests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
174 | 177 | | |
175 | 178 | | |
176 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | | - | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
504 | 506 | | |
505 | 507 | | |
506 | 508 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
191 | 192 | | |
192 | 193 | | |
193 | | - | |
| 194 | + | |
194 | 195 | | |
195 | 196 | | |
| 197 | + | |
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
| |||
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
215 | 220 | | |
216 | 221 | | |
217 | 222 | | |
| |||
0 commit comments