mirror of
https://github.com/curl/curl.git
synced 2026-07-25 02:57:15 +03:00
hyper: implement unpausing via client reader
Just a tidy up to contain 'ifdef' pollution of common code parts with implementation specifics. - remove the ifdef hyper unpausing in easy.c - add hyper client reader for CURL_CR_PROTOCOL phase that implements the unpause method for calling the hyper waker if it is set Closes #13075
This commit is contained in:
parent
8a9fbd6291
commit
2c0f2e8163
5 changed files with 75 additions and 19 deletions
15
lib/sendf.c
15
lib/sendf.c
|
|
@ -523,6 +523,21 @@ void Curl_creader_def_close(struct Curl_easy *data,
|
|||
(void)reader;
|
||||
}
|
||||
|
||||
CURLcode Curl_creader_def_read(struct Curl_easy *data,
|
||||
struct Curl_creader *reader,
|
||||
char *buf, size_t blen,
|
||||
size_t *nread, bool *eos)
|
||||
{
|
||||
if(reader->next)
|
||||
return reader->next->crt->do_read(data, reader->next, buf, blen,
|
||||
nread, eos);
|
||||
else {
|
||||
*nread = 0;
|
||||
*eos = FALSE;
|
||||
return CURLE_READ_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
bool Curl_creader_def_needs_rewind(struct Curl_easy *data,
|
||||
struct Curl_creader *reader)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue