mirror of
https://github.com/curl/curl.git
synced 2026-07-29 20:08:12 +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
10
lib/easy.c
10
lib/easy.c
|
|
@ -1126,16 +1126,6 @@ CURLcode curl_easy_pause(struct Curl_easy *data, int action)
|
|||
return result;
|
||||
}
|
||||
|
||||
#ifdef USE_HYPER
|
||||
if(!(newstate & KEEP_SEND_PAUSE)) {
|
||||
/* need to wake the send body waker */
|
||||
if(data->hyp.send_body_waker) {
|
||||
hyper_waker_wake(data->hyp.send_body_waker);
|
||||
data->hyp.send_body_waker = NULL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* if there's no error and we're not pausing both directions, we want
|
||||
to have this handle checked soon */
|
||||
if((newstate & (KEEP_RECV_PAUSE|KEEP_SEND_PAUSE)) !=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue