]> git.ipfire.org Git - thirdparty/curl.git/commit
multi: handle errors returned from socket/timer callbacks
authorDaniel Stenberg <daniel@haxx.se>
Thu, 2 Dec 2021 12:57:38 +0000 (13:57 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 6 Dec 2021 13:55:52 +0000 (14:55 +0100)
commit2b3dd01b779e4eff623a735792a915cde914b74a
tree5c11c6cc0793b8df324316042bba7212eb338926
parentb3f9c1aa09cbcdf6350d627f79f7d0e86cb178d3
multi: handle errors returned from socket/timer callbacks

The callbacks were partially documented to support this. Now the
behavior is documented and returning error from either of these
callbacks will effectively kill all currently ongoing transfers.

Added test 530 to verify

Reported-by: Marcelo Juchem
Fixes #8083
Closes #8089
14 files changed:
docs/libcurl/opts/CURLMOPT_SOCKETFUNCTION.3
docs/libcurl/opts/CURLMOPT_TIMERFUNCTION.3
docs/libcurl/symbols-in-versions
include/curl/multi.h
lib/easy.c
lib/multi.c
lib/multihandle.h
lib/multiif.h
lib/strerror.c
tests/data/Makefile.inc
tests/data/test1538
tests/data/test530 [new file with mode: 0644]
tests/libtest/Makefile.inc
tests/libtest/lib530.c [new file with mode: 0644]