oknet commented on a change in pull request #6910:
URL: https://github.com/apache/trafficserver/pull/6910#discussion_r447066939



##########
File path: contrib/openssl/async_engine.c
##########
@@ -224,21 +241,24 @@ spawn_delay_thread()
 {
   pthread_t thread_id;
   OSSL_ASYNC_FD signal_fd;
-  OSSL_ASYNC_FD pipefds[2] = {0, 0};
   ASYNC_JOB *job;
-  if ((job = ASYNC_get_current_job()) == NULL)
+  if ((job = ASYNC_get_current_job()) == NULL) {
+      printf("Spawn no job\n");
       return;
+  }
 
   ASYNC_WAIT_CTX *waitctx = ASYNC_get_wait_ctx(job);
 
   size_t numfds;
   if (ASYNC_WAIT_CTX_get_all_fds(waitctx, &signal_fd, &numfds) && numfds > 0) {

Review comment:
       If we got an existed fd from waitctx, it means there is an async job 
still in progress. It should return immediately.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to