Patrick McManus wrote: > Brian Smith wrote: > > There is a function SSL_ForceHandshake that does this. I would avoid > > trying to emulate it outside of libssl if possible, as there are a > > lot of subtleties. See > > https://bugzilla.mozilla.org/buglist.cgi?quicksearch=SSL_ForceHandshake > > for examples. > > I went down that road. It blocked the thread when dealing with OSCP in > a way that send/recv did not.
I will investigate this. Keep doing things the way you are for now. My guess is that the call to SSL_ForceHandshake must be made on the SSL thread. > Do you see a problem with initiating the recv() in order to activate > the handshake? It isn't a problem for the HTTP state machine. For now, I'd just make a note in your code that calls revc() that we are doing this because SSL_ForceHandshake would block. I will fix things so that SSL_ForceHandshake will work correctly here. - Brian _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
