Lines Matching refs:result
121 CURLcode result = CURLE_OK; in httpchunk_readwrite() local
135 result = Curl_cwriter_write(data, cw_next, CLIENTWRITE_BODY, buf, blen); in httpchunk_readwrite()
137 result = Curl_client_write(data, CLIENTWRITE_BODY, (char *)buf, blen); in httpchunk_readwrite()
138 if(result) { in httpchunk_readwrite()
141 return result; in httpchunk_readwrite()
212 result = Curl_cwriter_write(data, cw_next, CLIENTWRITE_BODY, in httpchunk_readwrite()
215 result = Curl_client_write(data, CLIENTWRITE_BODY, in httpchunk_readwrite()
217 if(result) { in httpchunk_readwrite()
220 return result; in httpchunk_readwrite()
260 result = Curl_dyn_addn(&ch->trailer, (char *)STRCONST("\x0d\x0a")); in httpchunk_readwrite()
261 if(result) { in httpchunk_readwrite()
264 return result; in httpchunk_readwrite()
270 result = Curl_cwriter_write(data, cw_next, in httpchunk_readwrite()
275 result = Curl_client_write(data, in httpchunk_readwrite()
279 if(result) { in httpchunk_readwrite()
282 return result; in httpchunk_readwrite()
298 result = Curl_dyn_addn(&ch->trailer, buf, 1); in httpchunk_readwrite()
299 if(result) { in httpchunk_readwrite()
302 return result; in httpchunk_readwrite()
426 CURLcode result; in cw_chunked_write() local
433 result = httpchunk_readwrite(data, &ctx->ch, writer->next, buf, blen, in cw_chunked_write()
436 if(result) { in cw_chunked_write()
444 return result; in cw_chunked_write()
506 CURLcode result; in add_last_chunk() local
515 result = Curl_bufq_cwrite(&ctx->chunkbuf, STRCONST("0\r\n"), &n); in add_last_chunk()
516 if(result) in add_last_chunk()
525 result = CURLE_ABORTED_BY_CALLBACK; in add_last_chunk()
537 result = Curl_bufq_cwrite(&ctx->chunkbuf, tr->data, in add_last_chunk()
539 if(!result) in add_last_chunk()
540 result = Curl_bufq_cwrite(&ctx->chunkbuf, STRCONST("\r\n"), &n); in add_last_chunk()
541 if(result) in add_last_chunk()
545 result = Curl_bufq_cwrite(&ctx->chunkbuf, STRCONST("\r\n"), &n); in add_last_chunk()
550 "from client -> %d", result); in add_last_chunk()
551 return result; in add_last_chunk()
559 CURLcode result; in add_chunk() local
576 result = Curl_creader_read(data, reader->next, buf, blen, &nread, &eos); in add_chunk()
577 if(result) in add_chunk()
578 return result; in add_chunk()
592 result = Curl_bufq_cwrite(&ctx->chunkbuf, hd, hdlen, &n); in add_chunk()
593 if(!result) in add_chunk()
594 result = Curl_bufq_cwrite(&ctx->chunkbuf, buf, nread, &n); in add_chunk()
595 if(!result) in add_chunk()
596 result = Curl_bufq_cwrite(&ctx->chunkbuf, "\r\n", 2, &n); in add_chunk()
598 nread, result); in add_chunk()
599 if(result) in add_chunk()
600 return result; in add_chunk()
614 CURLcode result = CURLE_READ_ERROR; in cr_chunked_read() local
622 result = add_chunk(data, reader, buf, blen); in cr_chunked_read()
623 if(result) in cr_chunked_read()
624 return result; in cr_chunked_read()
628 result = Curl_bufq_cread(&ctx->chunkbuf, buf, blen, pnread); in cr_chunked_read()
629 if(!result && ctx->read_eos && Curl_bufq_is_empty(&ctx->chunkbuf)) { in cr_chunked_read()
634 return result; in cr_chunked_read()
670 CURLcode result; in Curl_httpchunk_add_reader() local
672 result = Curl_creader_create(&reader, data, &Curl_httpchunk_encoder, in Curl_httpchunk_add_reader()
674 if(!result) in Curl_httpchunk_add_reader()
675 result = Curl_creader_add(data, reader); in Curl_httpchunk_add_reader()
677 if(result && reader) in Curl_httpchunk_add_reader()
679 return result; in Curl_httpchunk_add_reader()