Lines Matching refs:poll_idx

528     size_t poll_idx;  in build_request_set()  local
538 for (poll_idx = 0; poll_idx < poll_count; poll_idx++) { in build_request_set()
539 (void)BIO_flush(outbiolist[poll_idx]); in build_request_set()
540 BIO_free(outbiolist[poll_idx]); in build_request_set()
541 SSL_free(poll_list[poll_idx].desc.value.ssl); in build_request_set()
565 poll_idx = poll_count - 1; in build_request_set()
591 outnames[poll_idx] = req; in build_request_set()
601 outbiolist[poll_idx] = BIO_new_file(outfilename, "w+"); in build_request_set()
602 if (outbiolist[poll_idx] == NULL) { in build_request_set()
630 poll_list[poll_idx].desc = SSL_as_poll_descriptor(new_stream); in build_request_set()
631 poll_list[poll_idx].revents = 0; in build_request_set()
632 poll_list[poll_idx].events = SSL_POLL_EVENT_R; in build_request_set()
635 while (!SSL_write_ex2(poll_list[poll_idx].desc.value.ssl, in build_request_set()
638 if (handle_io_failure(poll_list[poll_idx].desc.value.ssl, 0) == 1) in build_request_set()
649 for (poll_idx = 0; poll_idx < poll_count; poll_idx++) { in build_request_set()
650 BIO_free(outbiolist[poll_idx]); in build_request_set()
651 SSL_free(poll_list[poll_idx].desc.value.ssl); in build_request_set()
855 size_t poll_idx = 0; in main() local
935 for (poll_idx = 0; poll_idx < this_poll_count; poll_idx++) { in main()
943 if (poll_list[poll_idx].revents == SSL_POLL_EVENT_R) { in main()
950 poll_list[poll_idx].revents = 0; in main()
959 if (!SSL_read_ex(poll_list[poll_idx].desc.value.ssl, buf, in main()
961 switch (handle_io_failure(poll_list[poll_idx].desc.value.ssl, in main()
982 BIO_write(outbiolist[poll_idx], buf, readbytes); in main()
984 fprintf(stderr, "completed %s\n", outnames[poll_idx]); in main()
986 poll_list[poll_idx].events = 0; in main()
1030 for (poll_idx = 0; poll_idx < poll_count; poll_idx++) { in main()
1031 BIO_free(outbiolist[poll_idx]); in main()
1032 SSL_free(poll_list[poll_idx].desc.value.ssl); in main()