]> git.ipfire.org Git - thirdparty/curl.git/commit
cf-socket: simulate slow/blocked receives in debug
authorStefan Eissing <stefan@eissing.org>
Thu, 5 Oct 2023 08:05:12 +0000 (10:05 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 8 Oct 2023 09:04:09 +0000 (11:04 +0200)
commitb9c78eeac122f4d6df3886806935858292e1128d
tree852ba124d5a5a4828c491da73791a5134a27bd27
parentba1e559bd8fb01330456fb321db15c227040b9ca
cf-socket: simulate slow/blocked receives in debug

add 2 env variables for non-UDP sockets:
1. CURL_DBG_SOCK_RBLOCK: percentage of receive calls that randomly
   should return EAGAIN
2. CURL_DBG_SOCK_RMAX: max amount of bytes read from socket

Closes #12035
lib/cf-socket.c