Lines Matching refs:errh
85 static int network_write_error(int fd, log_error_st *errh) { in network_write_error() argument
97 log_error(errh,__FILE__,__LINE__,"send failed: %d %d",lastError,fd); in network_write_error()
109 log_perror(errh,__FILE__,__LINE__,"write failed: %d",fd); in network_write_error()
131 …d, chunkqueue * const cq, off_t * const p_max_bytes, log_error_st * const errh, const ssize_t wr, … in network_write_accounting() argument
139 return network_write_error(fd, errh); in network_write_accounting()
149 …_chunk(const int fd, chunkqueue * const cq, off_t * const p_max_bytes, log_error_st * const errh) { in network_write_mem_chunk() argument
156 return network_write_accounting(fd, cq, p_max_bytes, errh, wr, c_len); in network_write_mem_chunk()
164 …o_mmap(const int fd, chunkqueue * const cq, off_t * const p_max_bytes, log_error_st * const errh) { in network_write_file_chunk_no_mmap() argument
173 if (c->file.fd < 0 && 0 != chunkqueue_open_file_chunk(cq, errh)) return -1; in network_write_file_chunk_no_mmap()
177 log_perror(errh, __FILE__, __LINE__, "read");/* err or unexpected EOF */ in network_write_file_chunk_no_mmap()
182 return network_write_accounting(fd, cq, p_max_bytes, errh, wr, toSend); in network_write_file_chunk_no_mmap()
199 …k_mmap(const int fd, chunkqueue * const cq, off_t * const p_max_bytes, log_error_st * const errh) { in network_write_file_chunk_mmap() argument
202 ? chunkqueue_chunk_file_view(cq->first, 0, errh)/*use default 512k block*/ in network_write_file_chunk_mmap()
205 return network_write_file_chunk_no_mmap(fd, cq, p_max_bytes, errh); in network_write_file_chunk_mmap()
216 return network_write_accounting(fd,cq,p_max_bytes,errh,(ssize_t)wr,toSend); in network_write_file_chunk_mmap()
254 …chunks(const int fd, chunkqueue * const cq, off_t * const p_max_bytes, log_error_st * const errh) { in network_writev_mem_chunks() argument
275 return network_write_accounting(fd, cq, p_max_bytes, errh, wr, toSend); in network_writev_mem_chunks()
295 …ndfile(const int fd, chunkqueue * const cq, off_t * const p_max_bytes, log_error_st * const errh) { in network_write_file_chunk_sendfile() argument
307 if (c->file.fd < 0 && 0 != chunkqueue_open_file_chunk(cq, errh)) return -1; in network_write_file_chunk_sendfile()
371 return network_write_file_chunk_mmap(fd, cq, p_max_bytes, errh); in network_write_file_chunk_sendfile()
373 return network_write_file_chunk_no_mmap(fd, cq, p_max_bytes, errh); in network_write_file_chunk_sendfile()
376 log_perror(errh, __FILE__, __LINE__, "sendfile(): fd: %d", fd); in network_write_file_chunk_sendfile()
387 log_error(errh, __FILE__, __LINE__, in network_write_file_chunk_sendfile()
406 …hunkqueue_writev(const int fd, chunkqueue * const cq, off_t max_bytes, log_error_st * const errh) { in network_write_chunkqueue_writev() argument
413 rc = network_writev_mem_chunks(fd, cq, &max_bytes, errh); in network_write_chunkqueue_writev()
415 rc = network_write_mem_chunk(fd, cq, &max_bytes, errh); in network_write_chunkqueue_writev()
420 rc = network_write_file_chunk_mmap(fd, cq, &max_bytes, errh); in network_write_chunkqueue_writev()
422 rc = network_write_file_chunk_no_mmap(fd, cq, &max_bytes, errh); in network_write_chunkqueue_writev()
434 …nkqueue_sendfile(const int fd, chunkqueue * const cq, off_t max_bytes, log_error_st * const errh) { in network_write_chunkqueue_sendfile() argument
441 rc = network_writev_mem_chunks(fd, cq, &max_bytes, errh); in network_write_chunkqueue_sendfile()
443 rc = network_write_mem_chunk(fd, cq, &max_bytes, errh); in network_write_chunkqueue_sendfile()
448 rc = network_write_file_chunk_sendfile(fd, cq, &max_bytes, errh); in network_write_chunkqueue_sendfile()
450 rc = network_write_file_chunk_mmap(fd, cq, &max_bytes, errh); in network_write_chunkqueue_sendfile()
452 rc = network_write_file_chunk_no_mmap(fd, cq, &max_bytes, errh); in network_write_chunkqueue_sendfile()
501 log_error(srv->errh, __FILE__, __LINE__, in network_write_init()