RE: Issues with ASYNC_pause_job() wake up

2020-02-11 Thread Valerio Di Gregorio (vadigreg) via openssl-users
Innovation Batiment E, 2nd Floor, Desk A4-7 1015 Ecublens, Vaud Switzerland -Original Message- From: Matt Caswell Sent: Tuesday, February 11, 2020 4:14 PM To: Valerio Di Gregorio (vadigreg) ; openssl-users@openssl.org Subject: Re: Issues with ASYNC_pause_job() wake up On 11/02/2020 14:4

Re: Issues with ASYNC_pause_job() wake up

2020-02-11 Thread Matt Caswell
;t know what that means you need to do in libcurl terms. Matt > > Val > > -Original Message- From: Matt Caswell > Sent: Tuesday, February 11, 2020 3:36 PM To: Valerio Di Gregorio > (vadigreg) ; openssl-users@openssl.org Subject: > Re: Issues with ASYNC_pause_job()

RE: Issues with ASYNC_pause_job() wake up

2020-02-11 Thread Valerio Di Gregorio (vadigreg) via openssl-users
eg) ; openssl-users@openssl.org Subject: Re: Issues with ASYNC_pause_job() wake up On 11/02/2020 14:26, Valerio Di Gregorio (vadigreg) wrote: > Hi Matt, Thanks for your reply. HTTPS request is initiated using > libcurl. I've installed a callback in libcurl as > CURLOP_T_SSL_CTX

Re: Issues with ASYNC_pause_job() wake up

2020-02-11 Thread Matt Caswell
gt; Many thanks for helping! > > Val > > > -Original Message- From: openssl-users > On Behalf Of Matt Caswell Sent: > Tuesday, February 11, 2020 2:52 PM To: openssl-users@openssl.org > Subject: Re: Issues with ASYNC_pause_job() wake up > >

RE: Issues with ASYNC_pause_job() wake up

2020-02-11 Thread Valerio Di Gregorio (vadigreg) via openssl-users
lf Of Matt Caswell Sent: Tuesday, February 11, 2020 2:52 PM To: openssl-users@openssl.org Subject: Re: Issues with ASYNC_pause_job() wake up On 11/02/2020 13:05, Valerio Di Gregorio (vadigreg) via openssl-users wrote: > 1. ASYNC_pause_job() can wake up before write(). It will then block on &

Re: Issues with ASYNC_pause_job() wake up

2020-02-11 Thread Matt Caswell
On 11/02/2020 13:05, Valerio Di Gregorio (vadigreg) via openssl-users wrote: > 1. ASYNC_pause_job() can wake up before write(). It will then block on > the read(), which is too bad in my single-threaded code. > 2. I fixed case 1 by making read() non-blocking, I then run > ASYNC_pause_j

Issues with ASYNC_pause_job() wake up

2020-02-11 Thread Valerio Di Gregorio (vadigreg) via openssl-users
Hello, This is my first post here. I need help with ASYNC_pause_job(). I'm writing an async engine to delegate certificate validation to a different process. Validation happens asynchronously through IPCs. To explain what I'm doing I'll use some "pseudo" code: // this happens in process #1 ctx