Home
last modified time | relevance | path

Searched refs:wr (Results 1 – 16 of 16) sorted by relevance

/lighttpd1.4/src/
H A Dnetwork_write.c132 if (wr >= 0) { in network_write_accounting()
135 chunkqueue_mark_written(cq, wr); in network_write_accounting()
181 ssize_t wr = network_write_data_len(fd, buf, toSend); in network_write_file_chunk_no_mmap() local
274 ssize_t wr = writev(fd, chunks, num_chunks); in network_writev_mem_chunks() local
297 ssize_t wr; in network_write_file_chunk_sendfile() local
314 wr = sendfile(fd, c->file.fd, &offset, toSend); in network_write_file_chunk_sendfile()
315 if (wr > 0) written = (off_t)wr; in network_write_file_chunk_sendfile()
342 wr = -1; in network_write_file_chunk_sendfile()
347 if (-1 == wr) { in network_write_file_chunk_sendfile()
386 else if (0 == wr) { /*(-1 != wr && 0 == written)*/ in network_write_file_chunk_sendfile()
[all …]
H A Dchunk.c933 dest->bytes_out -= wr; in chunkqueue_append_cqmem_to_tempfile_partial()
999 if (wr >= 0) { in chunkqueue_append_cqmem_to_tempfile()
1015 return wr; in chunkqueue_append_cqmem_to_tempfile()
1081 total += wr; in chunkqueue_append_splice_pipe_tempfile()
1102 return (0 == wr) ? total + (ssize_t)len : wr; in chunkqueue_append_splice_pipe_tempfile()
1163 return wr; in chunkqueue_append_splice_sock_tempfile()
1369 ssize_t wr = 0; in chunkqueue_write_data() local
1371 do { wr = write(fd, buf, len); } while (-1 == wr && errno == EINTR); in chunkqueue_write_data()
1372 return wr; in chunkqueue_write_data()
1417 const ssize_t wr = in chunkqueue_write_chunk_file() local
[all …]
H A Dlog.c86 ssize_t wr; in write_all() local
89 wr = write(fd, (const char *)buf + written, count); in write_all()
90 } while (wr > 0 ? (written += wr, count -= wr) : wr < 0 && errno == EINTR); in write_all()
95 if (0 == wr) errno = EIO; /* really shouldn't happen... */ in write_all()
H A Dmod_gnutls.c2277 switch (wr) { in mod_gnutls_write_err()
2379 if (wr <= 0) in connection_write_cq_ssl()
2381 max_bytes -= wr; in connection_write_cq_ssl()
2407 int wr; in connection_write_cq_ssl() local
2438 data += wr; in connection_write_cq_ssl()
2464 if (wr <= 0) in connection_write_cq_ssl_ktls()
2466 max_bytes -= wr; in connection_write_cq_ssl_ktls()
2487 ssize_t wr = in connection_write_cq_ssl_ktls() local
2489 if (wr < 0) in connection_write_cq_ssl_ktls()
2492 c->offset -= wr; in connection_write_cq_ssl_ktls()
[all …]
H A Dmod_openssl.c2975 else if (wr == -1) { in mod_openssl_write_err()
2983 "SSL: %d %d", ssl_r, wr); in mod_openssl_write_err()
2996 if (wr == 0) return -2; in mod_openssl_write_err()
3045 int wr; in connection_write_cq_ssl() local
3071 if (wr <= 0) in connection_write_cq_ssl()
3074 chunkqueue_mark_written(cq, wr); in connection_write_cq_ssl()
3075 max_bytes -= wr; in connection_write_cq_ssl()
3106 ossl_ssize_t wr = in connection_write_cq_ssl_ktls() local
3108 if (wr < 0) in connection_write_cq_ssl_ktls()
3111 chunkqueue_mark_written(cq, wr); in connection_write_cq_ssl_ktls()
[all …]
H A Dmod_mbedtls.c1990 switch (wr) { in mod_mbedtls_ssl_write_err()
2030 int wr = (int)hctx->pending_write; in connection_write_cq_ssl() local
2037 wr = mbedtls_ssl_write(ssl, NULL, data_len); in connection_write_cq_ssl()
2038 if (wr <= 0) in connection_write_cq_ssl()
2040 max_bytes -= wr; in connection_write_cq_ssl()
2043 chunkqueue_mark_written(cq, wr); in connection_write_cq_ssl()
2058 int wr; in connection_write_cq_ssl() local
2090 if (wr <= 0) { in connection_write_cq_ssl()
2094 wr_total += wr; in connection_write_cq_ssl()
2095 data += wr; in connection_write_cq_ssl()
[all …]
H A Dfdlog_maint.c254 const ssize_t wr = write_all(fdlog->fd, BUF_PTR_LEN(b)); in fdlog_files_flush() local
256 if (-1 == wr) in fdlog_files_flush()
H A Dhttp-header-glue.c837 uint32_t remain = (uint32_t)len, wr; in http_response_transfer_cqlen() local
838 for (const chunk *c = cq->first; c && remain; c=c->next, remain-=wr) { in http_response_transfer_cqlen()
840 wr = buffer_clen(c->mem) - c->offset; in http_response_transfer_cqlen()
841 if (wr > remain) wr = remain; in http_response_transfer_cqlen()
842 if (0 != http_chunk_decode_append_mem(r, c->mem->ptr+c->offset, wr)) in http_response_transfer_cqlen()
H A Dmod_wolfssl.c2746 int wr; in connection_write_cq_ssl() local
2764 wr = SSL_write(ssl, data, data_len); in connection_write_cq_ssl()
2772 if (wr <= 0) { in connection_write_cq_ssl()
2776 switch ((ssl_r = SSL_get_error(ssl, wr))) { in connection_write_cq_ssl()
2790 } else if (wr == -1) { in connection_write_cq_ssl()
2798 "SSL: %d %d", ssl_r, wr); in connection_write_cq_ssl()
2804 "SSL (error): %d %d", ssl_r, wr); in connection_write_cq_ssl()
2811 if (wr == 0) return -2; in connection_write_cq_ssl()
2824 chunkqueue_mark_written(cq, wr); in connection_write_cq_ssl()
2825 max_bytes -= wr; in connection_write_cq_ssl()
[all …]
H A Dmod_webdav.c2293 ssize_t rd, wr, off; in webdav_fcopyfile_sz() local
2305 } while (wr >= 0 ? (off += wr) != rd : errno == EINTR); in webdav_fcopyfile_sz()
2306 if (wr < 0) return -1; in webdav_fcopyfile_sz()
2777 ssize_t wr; in webdav_copytmp_rename() local
2788 } while (wr > 0 && (ilen -= wr)); in webdav_copytmp_rename()
2792 if (-1 == wr) { in webdav_copytmp_rename()
4511 if (__builtin_expect( (wr > 0), 1)) in mod_webdav_write_cq()
4512 chunkqueue_mark_written(cq, wr); in mod_webdav_write_cq()
4513 else if (wr < 0) { in mod_webdav_write_cq()
4830 ssize_t wr; in mod_webdav_put_range() local
[all …]
H A Dmod_cgi.c680 ssize_t wr = chunkqueue_write_chunk_to_pipe(fd, cq, r->conf.errh); in cgi_write_request() local
681 if (wr > 0) { in cgi_write_request()
683 chunkqueue_mark_written(cq, wr); in cgi_write_request()
686 if (c != cq->first || wr == 16384) in cgi_write_request()
690 else if (wr < 0) { in cgi_write_request()
H A Dmod_dirlisting.c1536 ssize_t wr = chunkqueue_write_chunk(fd, &in, errh); in mod_dirlisting_write_cq() local
1537 if (__builtin_expect( (wr > 0), 1)) in mod_dirlisting_write_cq()
1538 chunkqueue_steal(cq, &in, wr); in mod_dirlisting_write_cq()
1539 else if (wr < 0) { in mod_dirlisting_write_cq()
H A Dmod_deflate.c861 ssize_t wr; in mod_deflate_cache_file_append() local
863 wr = write(hctx->cache_fd, out, len); in mod_deflate_cache_file_append()
864 } while (wr > 0 ? ((out += wr), (len -= (size_t)wr)) : errno == EINTR); in mod_deflate_cache_file_append()
H A Dmod_nss.c2193 int wr; in connection_write_cq_ssl() local
2215 wr = PR_Write(ssl, data, (PRInt32)wr_len); in connection_write_cq_ssl()
2216 if (wr <= 0) { in connection_write_cq_ssl()
2220 wr_total += wr; in connection_write_cq_ssl()
2221 data += wr; in connection_write_cq_ssl()
2222 } while ((data_len -= wr)); in connection_write_cq_ssl()
H A Dmod_accesslog.c1011 const ssize_t wr = write_all(fdlog->fd, BUF_PTR_LEN(b)); in REQUESTDONE_FUNC() local
1013 if (-1 == wr) in REQUESTDONE_FUNC()
/lighttpd1.4/
H A DNEWS880 * [core] improve handling of suboptimal backend wr
1308 * [multiple] rename r to rc rv rd wr to be different
1734 * [core] set last_used on rd/wr from backend (fixes #3029)