MCPcopy Create free account
hub / github.com/apache/skywalking-php / hook_curl_multi_close

Method hook_curl_multi_close

src/plugin/plugin_curl.rs:337–350  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

335 }
336
337 fn hook_curl_multi_close(&self) -> (Box<BeforeExecuteHook>, Box<AfterExecuteHook>) {
338 (
339 Box::new(|_, execute_data| {
340 validate_num_args(execute_data, 1)?;
341
342 let multi_id = Self::get_resource_id(execute_data)?;
343
344 CURL_MULTI_INFO_MAP.with(|map| map.borrow_mut().remove(&multi_id));
345
346 Ok(Box::new(()))
347 }),
348 Noop::noop(),
349 )
350 }
351
352 fn get_resource_id(execute_data: &mut ExecuteData) -> anyhow::Result<i64> {
353 let ch = execute_data.get_parameter(0);

Callers 1

hookMethod · 0.80

Calls 1

validate_num_argsFunction · 0.85

Tested by

no test coverage detected