| 256 | } |
| 257 | |
| 258 | static void start_fetch_loose(struct transfer_request *request) |
| 259 | { |
| 260 | struct active_request_slot *slot; |
| 261 | struct http_object_request *obj_req; |
| 262 | |
| 263 | obj_req = new_http_object_request(repo->url, &request->obj->oid); |
| 264 | if (!obj_req) { |
| 265 | request->state = ABORTED; |
| 266 | return; |
| 267 | } |
| 268 | |
| 269 | slot = obj_req->slot; |
| 270 | slot->callback_func = process_response; |
| 271 | slot->callback_data = request; |
| 272 | request->slot = slot; |
| 273 | request->userData = obj_req; |
| 274 | |
| 275 | /* Try to get the request started, abort the request on error */ |
| 276 | request->state = RUN_FETCH_LOOSE; |
| 277 | if (!start_active_slot(slot)) { |
| 278 | fprintf(stderr, "Unable to start GET request\n"); |
| 279 | repo->can_update_info_refs = 0; |
| 280 | release_http_object_request(&obj_req); |
| 281 | release_request(request); |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | static void start_mkcol(struct transfer_request *request) |
| 286 | { |
no test coverage detected