diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-12-02 13:57:38 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-12-06 14:55:52 +0100 |
commit | 2b3dd01b779e4eff623a735792a915cde914b74a (patch) | |
tree | 5c11c6cc0793b8df324316042bba7212eb338926 /lib/multihandle.h | |
parent | b3f9c1aa09cbcdf6350d627f79f7d0e86cb178d3 (diff) | |
download | curl-2b3dd01b779e4eff623a735792a915cde914b74a.tar.gz |
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
Diffstat (limited to 'lib/multihandle.h')
-rw-r--r-- | lib/multihandle.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/multihandle.h b/lib/multihandle.h index 2e4a6ffba..db7f130ef 100644 --- a/lib/multihandle.h +++ b/lib/multihandle.h @@ -156,6 +156,8 @@ struct Curl_multi { #ifdef USE_OPENSSL bool ssl_seeded; #endif + bool dead; /* a callback returned error, everything needs to crash and + burn */ }; #endif /* HEADER_CURL_MULTIHANDLE_H */ |