mirror of
https://github.com/curl/curl.git
synced 2026-08-26 06:23:32 +03:00
multi: add notifications API
Add infrastructure to colled and dispatch notifications for transfers and the multi handle in general. Applications can register a callback and en-/disable notification type the are interested in. Without a callback installed, notifications are not collected. Same when a notification type has not been enabled. Memory allocation failures on adding notifications lead to a general multi failure state and result in CURLM_OUT_OF_MEMORY returned from curl_multi_perform() and curl_multi_socket*() invocations. Closes #18432
This commit is contained in:
parent
f4e83a0adc
commit
357808f4ad
24 changed files with 767 additions and 44 deletions
|
|
@ -109,6 +109,8 @@ curl_multi_get_offt
|
|||
curl_pushheader_bynum
|
||||
curl_pushheader_byname
|
||||
curl_multi_waitfds
|
||||
curl_multi_notify_disable
|
||||
curl_multi_notify_enable
|
||||
curl_easy_option_by_name
|
||||
curl_easy_option_by_id
|
||||
curl_easy_option_next
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ https://localhost:%HTTPSPORT/%TESTNUMBER %CERTDIR/certs/test-ca.crt
|
|||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<limits>
|
||||
Allocations: 13500
|
||||
Allocations: 13600
|
||||
</limits>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ Accept: */*
|
|||
|
||||
</protocol>
|
||||
<limits>
|
||||
Allocations: 81
|
||||
Allocations: 82
|
||||
Maximum allocated: 33400
|
||||
</limits>
|
||||
</verify>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue