Closed zhuizhuhaomeng closed 2 years ago
@zhuizhuhaomeng
Thank you for your advice, will look in to these codes and give you feedback.
@zhuizhuhaomeng
I can not catch up with you. I see this code blocks just delete/add all the fds
.
What's your point? Have you just omit the codes:
SSL_get_changed_async_fds(c->ssl->connection, add_fds, &num_add_fds,
del_fds, &num_del_fds);
@zhuizhuhaomeng Sorry for answering late, if no response in 7 days, I would like to close this issue, if any more questions, you can reopen this ticket or create a new one.
https://github.com/intel/asynch_mode_nginx/blob/master/src/event/ngx_event_openssl.c#L1660
we can see that, c->async_fd is just to passed fd to ngx_add_async_conn or ngx_del_async_conn. why not add all the fds ?
if we only want to add/del one fd, the loop is not needed at all.