|
|
|
@ -90,7 +90,7 @@ static int __conn_read(conn_t *co, void *buf, size_t buf_len)
|
|
|
|
|
int rfd = SSL_get_fd(co->ssl), r;
|
|
|
|
|
fd_set readset;
|
|
|
|
|
|
|
|
|
|
fprintf(stderr, "\tListening ... on %s\n", co->uuid);
|
|
|
|
|
//fprintf(stderr, "\tListening ... on %s\n", co->uuid);
|
|
|
|
|
/* get prepare to select */
|
|
|
|
|
FD_ZERO(&readset);
|
|
|
|
|
FD_SET(rfd, &readset);
|
|
|
|
@ -1265,7 +1265,12 @@ static int __default_msg_return(void *cctx, sexp_t *sx)
|
|
|
|
|
usrtc_delete(chan->msgs_tree, &(smsg->pendingq_node));
|
|
|
|
|
pthread_rwlock_unlock(&(chan->msglock));
|
|
|
|
|
}
|
|
|
|
|
pthread_mutex_unlock(&(smsg->wait));
|
|
|
|
|
if(smsg->flags & ESXMSG_PENDING) pthread_mutex_unlock(&(smsg->wait));
|
|
|
|
|
else {
|
|
|
|
|
/* nobody want it */
|
|
|
|
|
destroy_sexp(smsg->initial_sx);
|
|
|
|
|
__destroy_msg(smsg);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
__finish:
|
|
|
|
|