mirror of
https://github.com/moparisthebest/curl
synced 2024-11-14 21:45:13 -05:00
c4e6968127
... and free it as soon as the transfer is done. It removes the extra alloc when a new size is set with setopt() and reduces memory for unused easy handles. In addition: the closure_handle now doesn't use an allocated buffer at all but the smallest supported size as a stack based one. Closes #5472
42 lines
469 B
Plaintext
42 lines
469 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
memory callbacks
|
|
</keywords>
|
|
</info>
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
none
|
|
</server>
|
|
<features>
|
|
http
|
|
</features>
|
|
# tool is what to use instead of 'curl'
|
|
<tool>
|
|
lib509
|
|
</tool>
|
|
|
|
<name>
|
|
initialization with memory callbacks and actual usage
|
|
</name>
|
|
<command>
|
|
nothing
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<stdout>
|
|
Callbacks were invoked!
|
|
</stdout>
|
|
</verify>
|
|
|
|
</testcase>
|