mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:03:36 +03:00
parent
1695fcf57d
commit
0065b146eb
10 changed files with 12 additions and 12 deletions
|
|
@ -258,7 +258,7 @@ static CURLcode socket_open(struct Curl_easy *data,
|
|||
* we get sockfd == 0 and if called again, we get a valid one > 0.
|
||||
* If we close the 0, we sometimes get failures in multi poll, as
|
||||
* 0 seems also be the fd for the sockpair used for WAKEUP polling.
|
||||
* Very strange. Maybe this code shouldbe ifdef'ed for macOS, but
|
||||
* Very strange. Maybe this code should be ifdef'ed for macOS, but
|
||||
* on "real" OS, fd 0 is stdin and we never see that. So...
|
||||
*/
|
||||
fake_sclose(*sockfd);
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ CURLcode Curl_cf_def_query(struct Curl_cfilter *cf,
|
|||
* Create a new filter instance, unattached to the filter chain.
|
||||
* Use Curl_conn_cf_add() to add it to the chain.
|
||||
* @param pcf on success holds the created instance
|
||||
* @parm cft the filter type
|
||||
* @param cft the filter type
|
||||
* @param ctx the type specific context to use
|
||||
*/
|
||||
CURLcode Curl_cf_create(struct Curl_cfilter **pcf,
|
||||
|
|
|
|||
|
|
@ -1793,7 +1793,7 @@ static ssize_t cf_h2_recv(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
|
||||
while(stream->memlen == 0 /* have no data for this stream */
|
||||
&& !ctx->pause_stream_id /* we are not paused either */
|
||||
&& ctx->inbuflen == 0) { /* and out inpput buffer is emtpy */
|
||||
&& ctx->inbuflen == 0) { /* and out input buffer is empty */
|
||||
/* Receive data from the "lower" filters */
|
||||
nread = Curl_conn_cf_recv(cf->next, data, ctx->inbuf, H2_BUFSIZE, err);
|
||||
if(nread < 0) {
|
||||
|
|
|
|||
|
|
@ -1353,7 +1353,7 @@ struct UrlState {
|
|||
size_t drain; /* Increased when this stream has data to read, even if its
|
||||
socket is not necessarily is readable. Decreased when
|
||||
checked. */
|
||||
struct Curl_data_priority priority; /* shallow coyp of data->set */
|
||||
struct Curl_data_priority priority; /* shallow copy of data->set */
|
||||
#endif
|
||||
|
||||
curl_read_callback fread_func; /* read callback/function */
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ CURLsslset Curl_init_sslset_nolock(curl_sslbackend id, const char *name,
|
|||
#define ALPN_H3 "h3"
|
||||
|
||||
/* conservative sizes on the ALPN entries and count we are handling,
|
||||
* we can increase these if we ever feel the need or have to accomodate
|
||||
* we can increase these if we ever feel the need or have to accommodate
|
||||
* ALPN strings from the "outside". */
|
||||
#define ALPN_NAME_MAX 10
|
||||
#define ALPN_ENTRIES_MAX 3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue