Lines Matching refs:nwritten
473 ssize_t nwritten = Curl_conn_cf_send(cf->next, data, (const char *)buf, in nw_out_writer() local
475 if(nwritten > 0) in nw_out_writer()
476 CURL_TRC_CF(data, cf, "[0] egress: wrote %zd bytes", nwritten); in nw_out_writer()
477 return nwritten; in nw_out_writer()
756 ssize_t nwritten; in nw_out_flush() local
763 nwritten = Curl_bufq_pass(&ctx->outbufq, nw_out_writer, cf, &result); in nw_out_flush()
764 if(nwritten < 0) { in nw_out_flush()
787 ssize_t nwritten; in send_callback() local
795 nwritten = Curl_bufq_write(&ctx->outbufq, buf, blen, &result); in send_callback()
797 nwritten = Curl_bufq_write_pass(&ctx->outbufq, buf, blen, in send_callback()
799 if(nwritten < 0) { in send_callback()
808 if(!nwritten) { in send_callback()
812 return nwritten; in send_callback()
2117 ssize_t nwritten; in cf_h2_body_send() local
2139 nwritten = Curl_bufq_write(&stream->sendbuf, buf, blen, err); in cf_h2_body_send()
2140 if(nwritten < 0) in cf_h2_body_send()
2143 if(eos && (blen == (size_t)nwritten)) in cf_h2_body_send()
2154 return nwritten; in cf_h2_body_send()
2171 ssize_t nwritten; in h2_submit() local
2177 nwritten = -1; in h2_submit()
2181 nwritten = Curl_h1_req_parse_read(&stream->h1, buf, len, NULL, 0, err); in h2_submit()
2182 if(nwritten < 0) in h2_submit()
2192 nwritten = -1; in h2_submit()
2201 nwritten = -1; in h2_submit()
2228 nwritten = -1; in h2_submit()
2255 body = (const char *)buf + nwritten; in h2_submit()
2256 bodylen = len - nwritten; in h2_submit()
2261 nwritten += n; in h2_submit()
2266 nwritten = -1; in h2_submit()
2273 stream ? stream->id : -1, nwritten, *err); in h2_submit()
2277 return nwritten; in h2_submit()
2287 ssize_t nwritten; in cf_h2_send() local
2293 nwritten = h2_submit(&stream, cf, data, buf, len, eos, err); in cf_h2_send()
2294 if(nwritten < 0) { in cf_h2_send()
2305 nwritten = cf_h2_body_send(cf, data, stream, buf, 0, eos, err); in cf_h2_send()
2307 stream->id, nwritten, *err, eos); in cf_h2_send()
2308 if(nwritten < 0) { in cf_h2_send()
2311 nwritten = len; in cf_h2_send()
2314 nwritten = cf_h2_body_send(cf, data, stream, buf, len, eos, err); in cf_h2_send()
2316 stream->id, len, nwritten, *err, eos); in cf_h2_send()
2328 nwritten = -1; in cf_h2_send()
2333 nwritten = -1; in cf_h2_send()
2341 nwritten = http2_handle_stream_close(cf, data, stream, err); in cf_h2_send()
2346 nwritten = -1; in cf_h2_send()
2355 stream->id, len, nwritten, *err, in cf_h2_send()
2366 len, nwritten, *err, in cf_h2_send()
2371 return nwritten; in cf_h2_send()