Lines Matching refs:sent
51 static void _post_pending_write(struct mcp_backendconn_s *be, ssize_t sent);
948 static void _post_pending_write(struct mcp_backendconn_s *be, ssize_t sent) { in _post_pending_write() argument
958 if (sent >= io->iovbytes) { in _post_pending_write()
960 sent -= io->iovbytes; in _post_pending_write()
962 io->iovbytes -= sent; in _post_pending_write()
965 if (sent >= iov->iov_len) { in _post_pending_write()
966 sent -= iov->iov_len; in _post_pending_write()
969 iov->iov_len -= sent; in _post_pending_write()
970 iov->iov_base = (char *)iov->iov_base + sent; in _post_pending_write()
971 sent = 0; in _post_pending_write()
982 if (sent <= 0) { in _post_pending_write()
984 assert(sent >= 0); in _post_pending_write()
1016 ssize_t sent = writev(mcmc_fd(be->client), be->write_iovs, iovcnt); in _flush_pending_write() local
1017 if (sent > 0) { in _flush_pending_write()
1018 _post_pending_write(be, sent); in _flush_pending_write()
1024 } else if (sent == -1) { in _flush_pending_write()
1045 int sent = mcp_tls_writev(be, iovcnt); in _flush_pending_tls_write() local
1046 if (sent > 0) { in _flush_pending_tls_write()
1047 _post_pending_write(be, sent); in _flush_pending_tls_write()
1054 } else if (sent == MCP_TLS_NEEDIO) { in _flush_pending_tls_write()
1058 } else if (sent == MCP_TLS_ERR) { in _flush_pending_tls_write()